aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-03-23 00:55:40 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-03-23 01:25:00 -0400
commit3639ad2cf027da7425ebe76382842c006acec05a (patch)
tree65682fc68e0625c4ff41f7cdc169482ec6d77672 /src/main.cpp
parent48be688f451e81d2a81c76a85dadf18093e672ab (diff)
Unified analog, digital, and timer pin mappings to implement the mapping
we discussed. There's no such thing as A0-A15 anymore. You should now be able to do something like: unsigned int val; pinMode(15, INPUT_ANALOG); val = analogRead(15);
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 9c988ec..013ffdf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,18 +4,18 @@
#include "HardwareUsb.h"
#include "usb.h"
-int ledPin = 13;
-HardwareUsb Usb;
+#define TEST_PIN 13
void setup() {
- pinMode(ledPin, OUTPUT);
+ pinMode(TEST_PIN, OUTPUT);
}
int toggle = 1;
+
void loop() {
- digitalWrite(ledPin, toggle);
+ digitalWrite(TEST_PIN, toggle);
toggle ^= 1;
- delay(1000);
+ delay(100);
}
int main(void) {