diff options
author | bnewbold <bnewbold@robocracy.org> | 2010-06-05 21:56:35 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2010-06-05 21:57:56 -0400 |
commit | 7ef5c1f749d25f9e3a03af7b7087b96e2046b489 (patch) | |
tree | 83d38c66cac6c1bd8c6f5c00554d8d4bd4341d5f | |
parent | e2b295651a79bdca5e8cc71b3098bfdfb0e4a99e (diff) | |
download | librambutan-7ef5c1f749d25f9e3a03af7b7087b96e2046b489.tar.gz librambutan-7ef5c1f749d25f9e3a03af7b7087b96e2046b489.zip |
fixed example
-rw-r--r-- | examples/test-session.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/test-session.cpp b/examples/test-session.cpp index 49aabef..40ffaca 100644 --- a/examples/test-session.cpp +++ b/examples/test-session.cpp @@ -92,7 +92,7 @@ void loop() { print_help(); break; case 117: // 'u' - Usb.println("Hello World!"); + SerialUSB.println("Hello World!"); break; case 119: // 'w' Serial1.println("Hello World!"); @@ -157,7 +157,7 @@ void loop() { Serial1.print("."); Serial2.print("."); Serial3.print("."); - Usb.print("."); + SerialUSB.print("."); } break; case 110: // 'n' @@ -183,8 +183,8 @@ void loop() { pwmWrite(pwm_pins[j], 1000 + i); } } - Usb.print(DUMMY_DAT); - Usb.print(DUMMY_DAT); + SerialUSB.print(DUMMY_DAT); + SerialUSB.print(DUMMY_DAT); do_noise(adc_pins[i]); for(uint32 j = 2; j<(uint32)sizeof(pwm_pins); j++) { if(adc_pins[i] != pwm_pins[j]) { @@ -207,7 +207,7 @@ void loop() { case 85: // 'U' COMM.println("Dumping data to USB. Press enter."); while(!COMM.available()) { - Usb.print(DUMMY_DAT); + SerialUSB.print(DUMMY_DAT); } break; case 103: // 'g' |