MIDI Interface in progress
Dependencies: SPI_TFT_ILI9341 TFT_fonts Touch_tft PowerControl mbed USBMIDI
Diff: main.cpp
- Revision:
- 16:f4d090f1e6ed
- Parent:
- 15:c297064a829b
--- a/main.cpp Mon Feb 24 09:54:44 2014 +0000 +++ b/main.cpp Mon Feb 24 11:11:46 2014 +0000 @@ -5,6 +5,9 @@ #include "USBMIDI.h" #include "touch_interface.h" + + + point p; int main() @@ -27,16 +30,18 @@ tft.locate(0,0); printf(" MIDIMAN! "); tft.line(0,83,239,83,White); + + powerdown(); Draw_buttons(White); while (1) { - +/* tft.locate(90,275); printf("DOWN"); tft.locate(170,275); printf("UP"); - +*/ if (tft.is_touched(tft.get_touch())) { // touch p = tft.get_touch(); p = tft.to_pixel(p); // convert to pixel position