aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp.example
diff options
context:
space:
mode:
authorPerry Hung <iperry@alum.mit.edu>2010-04-19 22:13:21 -0400
committerPerry Hung <iperry@alum.mit.edu>2010-04-19 23:31:22 -0400
commit9e6010339c47f62446c38a1f7deded8bc2647703 (patch)
tree6f6f4aa0a37d1ff5ae7746f257683b616419b144 /main.cpp.example
parent80dfcd0e01fe66347daba615101986cce5903a02 (diff)
downloadlibrambutan-9e6010339c47f62446c38a1f7deded8bc2647703.tar.gz
librambutan-9e6010339c47f62446c38a1f7deded8bc2647703.zip
Removed USB device instantiation in example while the new CDC device
gets written, cleaned it up a bit
Diffstat (limited to 'main.cpp.example')
-rw-r--r--main.cpp.example17
1 files changed, 2 insertions, 15 deletions
diff --git a/main.cpp.example b/main.cpp.example
index 04af8a2..6152687 100644
--- a/main.cpp.example
+++ b/main.cpp.example
@@ -25,27 +25,17 @@
/**
* @file example_main.cpp
*
- * @brief Sample main.cpp file. Blinks an LED, sends a message out USART2 and
- * the USB virtual COM port, and turns on PWM on pin 2
+ * @brief Sample main.cpp file. Blinks an LED, sends a message out USART2
+ * and turns on PWM on pin 2
*/
-#ifndef _EXAMPLE_MAIN_H_
-#define _EXAMPLE_MAIN_H_
-
-#endif
#include "wiring.h"
#include "HardwareSerial.h"
-#include "HardwareUsb.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 */
@@ -58,9 +48,6 @@ 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;