From 966e4ac594494f02a62d34bb9446ce1ff07dc54b Mon Sep 17 00:00:00 2001 From: "ajmeyer@mit.edu" Date: Fri, 12 Feb 2010 20:57:45 +0000 Subject: modded the library makefile to work with patched dfu-util, also added the USER_FLASH section to the rom linker git-svn-id: https://leaflabs.googlecode.com/svn/trunk/library@131 749a229e-a60e-11de-b98f-4500b42dc123 --- src/main.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 78b0f89..6f210e5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5,6 +5,8 @@ #include "usb.h" int ledPin = 13; +HardwareUsb Usb; + void setup() { pinMode(ledPin, OUTPUT); } @@ -13,7 +15,8 @@ int toggle = 1; void loop() { digitalWrite(ledPin, toggle); toggle ^= 1; - delay(100); + delay(1000); + Usb.println("hello world!"); } int main(void) { -- cgit v1.2.3