Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Esplora.h>
- void setup() {
- }
- void loop() {
- if (Esplora.readButton(1) == LOW) {
- Esplora.tone(500);
- }
- else {
- Esplora.noTone();
- }
- if (Esplora.readButton(2) == LOW) {
- Esplora.tone(1000);
- }
- else {
- Esplora.noTone();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement