Skip to content

Commit

Permalink
fix(Examples): Fix MAX78002 TFT_Demo Example for TFT=ADAFRUIT (analog…
Browse files Browse the repository at this point in the history
  • Loading branch information
selimgullulu authored Jan 13, 2024
1 parent 6784e3a commit 0441d9b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Examples/MAX78002/TFT_Demo/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,16 @@ int main(void)

printf("TFT Demo Example\n");
#ifdef TFT_ADAFRUIT
/* Initialize touch screen */
/* Initialize ADAFRUIT TFT display */
MXC_TFT_Init(MXC_SPI0, -1, NULL, NULL);
MXC_TFT_SetRotation(ROTATE_270);
TFT_test();
/* Initialize ADAFRUIT touch screen */
if (MXC_TS_Init(MXC_SPI0, -1, NULL, NULL))
printf("Touch screen initialization failed\n");
MXC_TS_Start();
TFT_Print("Touch the screen!", 0, 120, font_5, 17);
TFT_Print("And check serial terminal!", 0, 140, font_5, 27);
#else
/* Initialize TFT display */
MXC_TFT_Init(NULL, NULL);
Expand Down

0 comments on commit 0441d9b

Please sign in to comment.