@@ -38,6 +38,17 @@ Arduino_RGB_Display *gfx = new Arduino_RGB_Display(
3838// 320 /* width */, 820 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */,
3939// expander, GFX_NOT_DEFINED /* RST */, tl032fwv01_init_operations, sizeof(tl032fwv01_init_operations));
4040
41+ // 4.0" 720x720 square display
42+ // 720 /* width */, 720 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */,
43+ // expander, GFX_NOT_DEFINED /* RST */, NULL, 0);
44+
45+ // 4.0" 720x720 round display
46+ // 720 /* width */, 720 /* height */, rgbpanel, 0 /* rotation */, true /* auto_flush */,
47+ // expander, GFX_NOT_DEFINED /* RST */, hd40015c40_init_operations, sizeof(hd40015c40_init_operations));
48+ // needs also the rgbpanel to have these pulse/sync values:
49+ // 1 /* hync_polarity */, 46 /* hsync_front_porch */, 2 /* hsync_pulse_width */, 44 /* hsync_back_porch */,
50+ // 1 /* vsync_polarity */, 50 /* vsync_front_porch */, 16 /* vsync_pulse_width */, 16 /* vsync_back_porch */
51+
4152uint16_t *colorWheel;
4253
4354void setup (void )
@@ -75,7 +86,7 @@ uint8_t allpins[] = {SS, SCK, MOSI, MISO, A1, A0};
7586void loop ()
7687{
7788 gfx->draw16bitRGBBitmap (0 , 0 , colorWheel, gfx->width (), gfx->height ());
78- delay (100 );
89+ delay (1000 );
7990 return ;
8091}
8192
0 commit comments