@@ -43,9 +43,9 @@ static const uint16_t parallel_program[] = {
43
43
// .wrap
44
44
};
45
45
46
- void common_hal_displayio_parallelbus_construct (displayio_parallelbus_obj_t * self ,
47
- const mcu_pin_obj_t * data0 , const mcu_pin_obj_t * command , const mcu_pin_obj_t * chip_select ,
48
- const mcu_pin_obj_t * write , const mcu_pin_obj_t * read , const mcu_pin_obj_t * reset , uint32_t frequency ) {
46
+ void common_hal_displayio_parallelbus_construct (displayio_parallelbus_obj_t * self ,
47
+ const mcu_pin_obj_t * data0 , const mcu_pin_obj_t * command , const mcu_pin_obj_t * chip_select ,
48
+ const mcu_pin_obj_t * write , const mcu_pin_obj_t * read , const mcu_pin_obj_t * reset , uint32_t frequency ) {
49
49
50
50
uint8_t data_pin = data0 -> number ;
51
51
for (uint8_t i = 0 ; i < 8 ; i ++ ) {
@@ -108,7 +108,7 @@ void common_hal_displayio_parallelbus_construct(displayio_parallelbus_obj_t* sel
108
108
common_hal_rp2pio_statemachine_never_reset (& self -> state_machine );
109
109
}
110
110
111
- void common_hal_displayio_parallelbus_deinit (displayio_parallelbus_obj_t * self ) {
111
+ void common_hal_displayio_parallelbus_deinit (displayio_parallelbus_obj_t * self ) {
112
112
common_hal_rp2pio_statemachine_deinit (& self -> state_machine );
113
113
114
114
for (uint8_t i = 0 ; i < 8 ; i ++ ) {
@@ -123,7 +123,7 @@ void common_hal_displayio_parallelbus_deinit(displayio_parallelbus_obj_t* self)
123
123
}
124
124
125
125
bool common_hal_displayio_parallelbus_reset (mp_obj_t obj ) {
126
- displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
126
+ displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
127
127
if (self -> reset .base .type == & mp_type_NoneType ) {
128
128
return false;
129
129
}
@@ -139,21 +139,21 @@ bool common_hal_displayio_parallelbus_bus_free(mp_obj_t obj) {
139
139
}
140
140
141
141
bool common_hal_displayio_parallelbus_begin_transaction (mp_obj_t obj ) {
142
- displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
142
+ displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
143
143
common_hal_digitalio_digitalinout_set_value (& self -> chip_select , false);
144
144
return true;
145
145
}
146
146
147
147
void common_hal_displayio_parallelbus_send (mp_obj_t obj , display_byte_type_t byte_type ,
148
148
display_chip_select_behavior_t chip_select , const uint8_t * data , uint32_t data_length ) {
149
149
150
- displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
150
+ displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
151
151
152
152
common_hal_digitalio_digitalinout_set_value (& self -> command , byte_type == DISPLAY_DATA );
153
153
common_hal_rp2pio_statemachine_write (& self -> state_machine , data , data_length , 1 );
154
154
}
155
155
156
156
void common_hal_displayio_parallelbus_end_transaction (mp_obj_t obj ) {
157
- displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
157
+ displayio_parallelbus_obj_t * self = MP_OBJ_TO_PTR (obj );
158
158
common_hal_digitalio_digitalinout_set_value (& self -> chip_select , true);
159
159
}
0 commit comments