diff options
author | Perry Hung <iperry@alum.mit.edu> | 2010-04-19 22:25:49 -0400 |
---|---|---|
committer | Perry Hung <iperry@alum.mit.edu> | 2010-04-19 23:31:32 -0400 |
commit | a7b3786810ee93c81b65a431c04fd2f5d75354d2 (patch) | |
tree | 60228366992d21f28a0a28d4ca3b787c8a7bc8cd /main.cpp.example | |
parent | 9e6010339c47f62446c38a1f7deded8bc2647703 (diff) | |
download | librambutan-a7b3786810ee93c81b65a431c04fd2f5d75354d2.tar.gz librambutan-a7b3786810ee93c81b65a431c04fd2f5d75354d2.zip |
Added libmaple gpio_read_bit
Diffstat (limited to 'main.cpp.example')
-rw-r--r-- | main.cpp.example | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main.cpp.example b/main.cpp.example index 6152687..4130749 100644 --- a/main.cpp.example +++ b/main.cpp.example @@ -32,10 +32,15 @@ #include "wiring.h"
#include "HardwareSerial.h"
#include "math.h"
+#include "usb.h"
+
+uint8_t bytes_in;
#define LED_PIN 13
#define PWM_PIN 2
+HardwareUsb Usb;
+
void setup()
{
/* Set up the LED to blink */
@@ -48,6 +53,9 @@ void setup() /* Turn on PWM on pin PWM_PIN */
pinMode(PWM_PIN, PWM);
pwmWrite(PWM_PIN, 0x8000);
+
+ /* Send a message out the USB virtual com port */
+ Usb.println("Hello world!");
}
int toggle = 0;
|