From 3639ad2cf027da7425ebe76382842c006acec05a Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Tue, 23 Mar 2010 00:55:40 -0400 Subject: 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); --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.cpp') 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) { -- cgit v1.2.3