Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: SPI_TFT_ILI9341 TFT_fonts Touch_tft PowerControl mbed USBMIDI
Diff: light_pressed.h
- Revision:
- 9:df3bff3a0b76
- Parent:
- 7:4aec4a6acac2
- Child:
- 10:ff7cdaeb8b9a
diff -r 4aec4a6acac2 -r df3bff3a0b76 light_pressed.h
--- a/light_pressed.h Thu Feb 06 08:37:47 2014 +0000
+++ b/light_pressed.h Mon Feb 10 09:58:37 2014 +0000
@@ -3,7 +3,7 @@
int slider;
-int Octave = 0;
+extern int Oct = 0;
touch_tft tft(p20,p19,p18,p17,p5, p6, p7, p14, p15, p21, "TFT"); // x+,x-,y+,y-,mosi, miso, sclk, cs, reset, dc
@@ -100,10 +100,12 @@
if (p.y > 243 && p.y < 318) { //ROW C
if (p.x > 83 && p.x < 158) { //Ocatave down
buttons(8, color);
+ Oct = Oct - 12;
}
if (p.x > 163 && p.x < 238) { //Octave up
buttons(9, color);
+ Oct = Oct + 12;
}
