My first mbed-os 5.x test project with MAX32630FTHR and Adafruit 2.4" TFT with touch.

Dependencies:   BMI160 SPI_STMPE610 USBDevice UniGraphic max32630fthr

My first test program of mbed-os 5.x, using MAX32630FTHR and Adafruit 2.4" TFT with Touch.

On 22-Sep-2017 Monitoring both Acc and Gyr added to the screen 3 Controlling the backlight via STMPE610 GPIO-2 added

Files at this revision

API Documentation at this revision

Comitter:
Rhyme
Date:
Fri Sep 22 05:35:56 2017 +0000
Parent:
2:d810dbdd716b
Commit message:
some backlight control added

Changed in this revision

SPI_STMPE610.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r d810dbdd716b -r 43de31beea45 SPI_STMPE610.lib
--- a/SPI_STMPE610.lib	Fri Sep 22 05:12:59 2017 +0000
+++ b/SPI_STMPE610.lib	Fri Sep 22 05:35:56 2017 +0000
@@ -1,1 +1,1 @@
-http://os.mbed.com/users/Rhyme/code/SPI_STMPE610/#6740dfc84a8c
+http://mbed.org/users/Rhyme/code/SPI_STMPE610/#6740dfc84a8c
diff -r d810dbdd716b -r 43de31beea45 main.cpp
--- a/main.cpp	Fri Sep 22 05:12:59 2017 +0000
+++ b/main.cpp	Fri Sep 22 05:35:56 2017 +0000
@@ -340,12 +340,14 @@
     uint16_t x, y, z ;
     
     init_hardware() ;
+    backlight(0) ;
     initTFT() ;
+    backlight(1) ;
     
 #if USE_TTY
     tty->printf("MAX32630 test (%s)\n", __DATE__) ;
 #endif
-    tft->cls() ;
+//     tft->cls() ;
     for(;;) {
         switch(page) {
         case 0: