Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

little tidying

  • Loading branch information...
commit 8f0e7e334845a09a64cecf62021fa7dd29fc279a 1 parent 94f99f5
@ladyada ladyada authored
View
4 teensySNES_stellakey/teensySNES_stellakey.pde
@@ -123,10 +123,10 @@ void loop()
// //debugging the start button...
digitalWrite ( pinLEDOutput, digitalRead(pinBtnStart));
- check_switches();
+
//Process the accelerometer to make the cursor move.
//Comment this line to debug the accelerometer values:
- // fcnProcessAccelerometer();
+ fcnProcessAccelerometer();
//Progess the SNES controller buttons to send keystrokes.
fcnProcessButtons();
View
2  teensySNES_test1/teensySNES_test1.pde
@@ -1,4 +1,3 @@
-#define DEBOUNCE 10 // button debouncer, how many ms to debounce, 5+ ms is usually plenty
#define REPEATRATE 100 // milliseconds
const int pinBtnUp = 0;
@@ -36,7 +35,6 @@ void setup()
//It enables a pullup resitor on the pin.
for (byte i=0; i< NUMBUTTONS; i++) {
pinMode(buttons[i], INPUT_PULLUP);
-
}
//Uncomment this line to debug the acceleromter values:
Please sign in to comment.
Something went wrong with that request. Please try again.