File tree Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Expand file tree Collapse file tree 3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,7 @@ void cube0414_init_board(void)
41
41
42
42
void cube0414_setpin_dc (spi_transaction_t * t )
43
43
{
44
- int dc = (int )t -> user ;
45
-
46
- gpio_set_level (CONFIG_DEVICE_DC_PIN , dc );
44
+ gpio_set_level (CONFIG_DEVICE_DC_PIN , (int )t -> user );
47
45
}
48
46
49
47
void cube0414_setpin_reset (uint8_t val )
Original file line number Diff line number Diff line change @@ -69,9 +69,7 @@ void st7735_set_backlight(uint8_t val)
69
69
70
70
void st7735_setpin_dc (spi_transaction_t * t )
71
71
{
72
- int dc = (int )t -> user ;
73
-
74
- gpio_set_level (CONFIG_DEVICE_DC_PIN , dc );
72
+ gpio_set_level (CONFIG_DEVICE_DC_PIN , (int )t -> user );
75
73
}
76
74
77
75
void st7735_setpin_reset (uint8_t val )
Original file line number Diff line number Diff line change @@ -69,9 +69,7 @@ void st7789_set_backlight(uint8_t val)
69
69
70
70
void st7789_setpin_dc (spi_transaction_t * t )
71
71
{
72
- int dc = (int )t -> user ;
73
-
74
- gpio_set_level (CONFIG_DEVICE_DC_PIN , dc );
72
+ gpio_set_level (CONFIG_DEVICE_DC_PIN , (int )t -> user );
75
73
}
76
74
77
75
void st7789_setpin_reset (uint8_t val )
You can’t perform that action at this time.
0 commit comments