Update built in display init

This commit is contained in:
Scott Shawcroft 2020-03-27 14:35:29 -07:00
parent a870908718
commit b043384949
No known key found for this signature in database
GPG Key ID: 9349BC7E64B1921E
13 changed files with 40 additions and 14 deletions

View File

@ -79,7 +79,9 @@ void board_init(void) {
&pin_PA28, // Command or data &pin_PA28, // Command or data
&pin_PA01, // Chip select &pin_PA01, // Chip select
&pin_PA27, // Reset &pin_PA27, // Reset
12000000); 12000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -59,7 +59,9 @@ void board_init(void) {
&pin_PB31, // TFT_DC Command or data &pin_PB31, // TFT_DC Command or data
&pin_PA27, // TFT_CS Chip select &pin_PA27, // TFT_CS Chip select
&pin_PB30, // TFT_RST Reset &pin_PB30, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -60,7 +60,9 @@ void board_init(void) {
&pin_PA07, // TFT_DC Command or data &pin_PA07, // TFT_DC Command or data
&pin_PA06, // TFT_CS Chip select &pin_PA06, // TFT_CS Chip select
&pin_PA04, // TFT_RST Reset &pin_PA04, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -65,7 +65,9 @@ void board_init(void) {
&pin_PB05, // EPD_DC Command or data &pin_PB05, // EPD_DC Command or data
&pin_PB07, // EPD_CS Chip select &pin_PB07, // EPD_CS Chip select
&pin_PA00, // EPD_RST Reset &pin_PA00, // EPD_RST Reset
1000000); 1000000, // Baudrate
0, // Polarity
0); // Phase
displayio_epaperdisplay_obj_t* display = &displays[0].epaper_display; displayio_epaperdisplay_obj_t* display = &displays[0].epaper_display;
display->base.type = &displayio_epaperdisplay_type; display->base.type = &displayio_epaperdisplay_type;

View File

@ -107,7 +107,9 @@ void board_init(void) {
&pin_PA16, // TFT_DC Command or data &pin_PA16, // TFT_DC Command or data
&pin_PA11, // TFT_CS Chip select &pin_PA11, // TFT_CS Chip select
&pin_PA17, // TFT_RST Reset &pin_PA17, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
uint32_t cfg0 = lookupCfg(CFG_DISPLAY_CFG0, 0x000000); uint32_t cfg0 = lookupCfg(CFG_DISPLAY_CFG0, 0x000000);
uint32_t offX = (cfg0 >> 8) & 0xff; uint32_t offX = (cfg0 >> 8) & 0xff;

View File

@ -82,7 +82,9 @@ void board_init(void) {
&pin_PB05, // TFT_DC Command or data &pin_PB05, // TFT_DC Command or data
&pin_PB07, // TFT_CS Chip select &pin_PB07, // TFT_CS Chip select
&pin_PA00, // TFT_RST Reset &pin_PA00, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -60,7 +60,9 @@ void board_init(void) {
&pin_PB05, // TFT_DC Command or data &pin_PB05, // TFT_DC Command or data
&pin_PB06, // TFT_CS Chip select &pin_PB06, // TFT_CS Chip select
&pin_PB07, // TFT_RST Reset &pin_PB07, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -82,7 +82,9 @@ void board_init(void) {
&pin_PB05, // TFT_DC Command or data &pin_PB05, // TFT_DC Command or data
&pin_PB12, // TFT_CS Chip select &pin_PB12, // TFT_CS Chip select
&pin_PA00, // TFT_RST Reset &pin_PA00, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -60,7 +60,9 @@ void board_init(void) {
&pin_PA00, // TFT_DC Command or data &pin_PA00, // TFT_DC Command or data
&pin_PB15, // TFT_CS Chip select &pin_PB15, // TFT_CS Chip select
&pin_PB05, // TFT_RST Reset &pin_PB05, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -79,7 +79,9 @@ void board_init(void) {
&pin_PA09, // Command or data &pin_PA09, // Command or data
&pin_PA08, // Chip select &pin_PA08, // Chip select
NULL, // Reset NULL, // Reset
24000000); 24000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -59,7 +59,9 @@ void board_init(void) {
&pin_P0_13, // TFT_DC Command or data &pin_P0_13, // TFT_DC Command or data
&pin_P0_12, // TFT_CS Chip select &pin_P0_12, // TFT_CS Chip select
&pin_P1_03, // TFT_RST Reset &pin_P1_03, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -59,7 +59,9 @@ void board_init(void) {
&pin_P0_08, // TFT_DC Command or data &pin_P0_08, // TFT_DC Command or data
&pin_P0_14, // TFT_CS Chip select &pin_P0_14, // TFT_CS Chip select
&pin_P0_13, // TFT_RST Reset &pin_P0_13, // TFT_RST Reset
60000000); 60000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;

View File

@ -61,7 +61,7 @@ uint8_t display_init_sequence[] = {
0x3a, 1, 0x05, // COLMOD - 16bit color 0x3a, 1, 0x05, // COLMOD - 16bit color
0xe0, 0x10, 0x02, 0x1c, 0x07, 0x12, 0xe0, 0x10, 0x02, 0x1c, 0x07, 0x12,
0x37, 0x32, 0x29, 0x2d, 0x37, 0x32, 0x29, 0x2d,
0x29, 0x25, 0x2B, 0x39, 0x29, 0x25, 0x2B, 0x39,
0x00, 0x01, 0x03, 0x10, // _GMCTRP1 Gamma 0x00, 0x01, 0x03, 0x10, // _GMCTRP1 Gamma
0xe1, 0x10, 0x03, 0x1d, 0x07, 0x06, 0xe1, 0x10, 0x03, 0x1d, 0x07, 0x06,
0x2E, 0x2C, 0x29, 0x2D, 0x2E, 0x2C, 0x29, 0x2D,
@ -80,7 +80,9 @@ void board_init(void) {
&pin_PA08, // Command or data &pin_PA08, // Command or data
&pin_PB12, // Chip select &pin_PB12, // Chip select
&pin_PB10, // Reset &pin_PB10, // Reset
24000000); 24000000, // Baudrate
0, // Polarity
0); // Phase
displayio_display_obj_t* display = &displays[0].display; displayio_display_obj_t* display = &displays[0].display;
display->base.type = &displayio_display_type; display->base.type = &displayio_display_type;