Permalink
Browse files

use other serial port

  • Loading branch information...
1 parent c47498c commit 566c74df3f3743d1d2075343a4462b63d53e14e0 @svdgraaf committed Apr 30, 2012
Showing with 3 additions and 1 deletion.
  1. +2 −0 pwm_test/input.py
  2. +1 −1 pwm_test/pwm_test.ino
View
@@ -1,5 +1,7 @@
import serial
s = serial.Serial('/dev/tty.usbmodemfa141')
+# s = serial.Serial('/dev/tty.usbmodemfd131')
+# s = serial.Serial('/dev/tty.SLAB_USBtoUART')
import termios, fcntl, sys, os
fd = sys.stdin.fileno()
View
@@ -2,7 +2,7 @@ int pwmPin = 9; // LED connected to digital pin 9
int current_power = 120;
void setup() {
- Serial.begin(9600);
+ Serial.begin(9600);
analogWrite( 3, current_power);
analogWrite( 9, current_power);
analogWrite( 10, current_power);

0 comments on commit 566c74d

Please sign in to comment.