nrf5/drivers: Updating display objects to use new SPI pin configuration in print function.

This commit is contained in:
Glenn Ruben Bakke 2017-01-26 22:08:39 +01:00
parent 0254cab228
commit b4d53ad560
5 changed files with 29 additions and 33 deletions

View File

@ -84,13 +84,13 @@ STATIC void epaper_sld00200_print(const mp_print_t *print, mp_obj_t o, mp_print_
epaper_sld00200p_obj_t *self = o;
mp_printf(print, "SLD00200(SPI(mosi=(port=%u, pin=%u), miso=(port=%u, pin=%u), clk=(port=%u, pin=%u)),\n",
self->spi->pyb->spi->init.mosi_pin_port,
self->spi->pyb->spi->init.mosi_pin,
self->spi->pyb->spi->init.miso_pin_port,
self->spi->pyb->spi->init.miso_pin,
self->spi->pyb->spi->init.clk_pin_port,
self->spi->pyb->spi->init.clk_pin
);
self->spi->pyb->spi->init.mosi_pin->port,
self->spi->pyb->spi->init.mosi_pin->pin,
self->spi->pyb->spi->init.miso_pin->port,
self->spi->pyb->spi->init.miso_pin->pin,
self->spi->pyb->spi->init.clk_pin->port,
self->spi->pyb->spi->init.clk_pin->pin);
mp_printf(print, " PWM(pwm_pin=%u),\n",
self->pwm->pyb->pwm->init.pwm_pin);

View File

@ -74,13 +74,12 @@ STATIC void lcd_ili9341_print(const mp_print_t *print, mp_obj_t o, mp_print_kind
lcd_ili9341_obj_t *self = o;
mp_printf(print, "ILI9341(SPI(mosi=(port=%u, pin=%u), miso=(port=%u, pin=%u), clk=(port=%u, pin=%u)),\n",
self->spi->pyb->spi->init.mosi_pin_port,
self->spi->pyb->spi->init.mosi_pin,
self->spi->pyb->spi->init.miso_pin_port,
self->spi->pyb->spi->init.miso_pin,
self->spi->pyb->spi->init.clk_pin_port,
self->spi->pyb->spi->init.clk_pin
);
self->spi->pyb->spi->init.mosi_pin->port,
self->spi->pyb->spi->init.mosi_pin->pin,
self->spi->pyb->spi->init.miso_pin->port,
self->spi->pyb->spi->init.miso_pin->pin,
self->spi->pyb->spi->init.clk_pin->port,
self->spi->pyb->spi->init.clk_pin->pin);
mp_printf(print, " cs=(port=%u, pin=%u), dc=(port=%u, pin=%u),\n",
self->pin_cs->port,

View File

@ -76,11 +76,10 @@ STATIC void lcd_ls0xxb7dxxx_print(const mp_print_t *print, mp_obj_t o, mp_print_
lcd_ls0xxb7dxxx_obj_t *self = o;
mp_printf(print, "LS0XXB7DXXX(SPI(mosi=(port=%u, pin=%u), clk=(port=%u, pin=%u)),\n",
self->spi->pyb->spi->init.mosi_pin_port,
self->spi->pyb->spi->init.mosi_pin,
self->spi->pyb->spi->init.clk_pin_port,
self->spi->pyb->spi->init.clk_pin
);
self->spi->pyb->spi->init.mosi_pin->port,
self->spi->pyb->spi->init.mosi_pin->pin,
self->spi->pyb->spi->init.clk_pin->port,
self->spi->pyb->spi->init.clk_pin->pin);
mp_printf(print, " cs=(port=%u, pin=%u), disp=(port=%u, pin=%u), extcomin=(port=%u, pin=%u),\n",
self->pin_cs->port,

View File

@ -73,13 +73,12 @@ STATIC void oled_ssd1305_print(const mp_print_t *print, mp_obj_t o, mp_print_kin
oled_ssd1305_obj_t *self = o;
mp_printf(print, "SSD1305(SPI(mosi=(port=%u, pin=%u), miso=(port=%u, pin=%u), clk=(port=%u, pin=%u)),\n",
self->spi->pyb->spi->init.mosi_pin_port,
self->spi->pyb->spi->init.mosi_pin,
self->spi->pyb->spi->init.miso_pin_port,
self->spi->pyb->spi->init.miso_pin,
self->spi->pyb->spi->init.clk_pin_port,
self->spi->pyb->spi->init.clk_pin
);
self->spi->pyb->spi->init.mosi_pin->port,
self->spi->pyb->spi->init.mosi_pin->pin,
self->spi->pyb->spi->init.miso_pin->port,
self->spi->pyb->spi->init.miso_pin->pin,
self->spi->pyb->spi->init.clk_pin->port,
self->spi->pyb->spi->init.clk_pin->pin);
mp_printf(print, " cs=(port=%u, pin=%u), dc=(port=%u, pin=%u), reset=(port=%u, pin=%u),\n",
self->pin_cs->port,

View File

@ -73,13 +73,12 @@ STATIC void oled_ssd1306_print(const mp_print_t *print, mp_obj_t o, mp_print_kin
oled_ssd1306_obj_t *self = o;
mp_printf(print, "SSD1306(SPI(mosi=(port=%u, pin=%u), miso=(port=%u, pin=%u), clk=(port=%u, pin=%u)),\n",
self->spi->pyb->spi->init.mosi_pin_port,
self->spi->pyb->spi->init.mosi_pin,
self->spi->pyb->spi->init.miso_pin_port,
self->spi->pyb->spi->init.miso_pin,
self->spi->pyb->spi->init.clk_pin_port,
self->spi->pyb->spi->init.clk_pin
);
self->spi->pyb->spi->init.mosi_pin->port,
self->spi->pyb->spi->init.mosi_pin->pin,
self->spi->pyb->spi->init.miso_pin->port,
self->spi->pyb->spi->init.miso_pin->pin,
self->spi->pyb->spi->init.clk_pin->port,
self->spi->pyb->spi->init.clk_pin->pin);
mp_printf(print, " cs=(port=%u, pin=%u), dc=(port=%u, pin=%u), reset=(port=%u, pin=%u),\n",
self->pin_cs->port,