|
@ -9,6 +9,7 @@ |
|
|
|
|
|
|
|
|
#include "keyboard.h" |
|
|
#include "keyboard.h" |
|
|
|
|
|
|
|
|
|
|
|
#define VERSION "0.0" |
|
|
#define LED_PIN 21 |
|
|
#define LED_PIN 21 |
|
|
|
|
|
|
|
|
Keyboard keyboard; |
|
|
Keyboard keyboard; |
|
@ -18,12 +19,18 @@ void setup() |
|
|
// initialize LED digital pin as an output.
|
|
|
// initialize LED digital pin as an output.
|
|
|
pinMode(LED_PIN, OUTPUT); |
|
|
pinMode(LED_PIN, OUTPUT); |
|
|
keyboard.init(); |
|
|
keyboard.init(); |
|
|
|
|
|
Serial.begin(115200); |
|
|
|
|
|
Serial.println("-------------------------------------"); |
|
|
|
|
|
Serial.print("Soundboard v."); |
|
|
|
|
|
Serial.println(VERSION); |
|
|
|
|
|
Serial.println("https://dev.xd0.de/hendrik/soundboard"); |
|
|
|
|
|
Serial.println("-------------------------------------"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void loop() |
|
|
void loop() |
|
|
{ |
|
|
{ |
|
|
bool touched = false; |
|
|
bool touched = false; |
|
|
for(int i; i<=9; i++) { |
|
|
for(int i=0; i<=9; i++) { |
|
|
if (keyboard.getTouchDetected(i) == true) { |
|
|
if (keyboard.getTouchDetected(i) == true) { |
|
|
touched = true; |
|
|
touched = true; |
|
|
} |
|
|
} |
|
|