mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-12 23:08:52 +01:00
23 lines
450 B
C++
23 lines
450 B
C++
#include <Esplora.h>
|
|
|
|
void setup() {
|
|
Serial.begin(9600);
|
|
}
|
|
|
|
void loop() {
|
|
int slider = Esplora.readSlider();
|
|
int resetButton = Esplora.readButton(1);
|
|
int serveButton = Esplora.readButton(3);
|
|
int switchPlayerButton = Esplora.readButton(4);
|
|
|
|
Serial.print(slider);
|
|
Serial.print(",");
|
|
Serial.print(resetButton);
|
|
Serial.print(",");
|
|
Serial.print(serveButton);
|
|
Serial.print(",");
|
|
Serial.println(switchPlayerButton);
|
|
delay(10);
|
|
}
|
|
|