Skip to content
Snippets Groups Projects
Commit ba1ebfb3 authored by Neil Gershenfeld's avatar Neil Gershenfeld
Browse files

test node decode

parent aa4c1576
No related branches found
No related tags found
No related merge requests found
......@@ -20,11 +20,11 @@ void loop() {
c = Serial.read();
if (c == 0) {
REG_PORT_OUT0 |= LED; // turn on LED
delay(1); // delay
REG_PORT_OUT0 &= ~LED; // turn off LED
delay(1); // delay
}
else if (c == 255) {
REG_PORT_OUT0 |= LED; // turn on LED
REG_PORT_OUT0 &= ~LED; // turn off LED
REG_PORT_OUT0 |= LED; // turn on LED
REG_PORT_OUT0 &= ~LED; // turn off LED
}
......
......@@ -25,8 +25,8 @@ def handler(signum,stack):
flag = 0
signal.signal(signal.SIGALRM,handler)
#signal.setitimer(signal.ITIMER_REAL,0.00025,0.00025)
#signal.setitimer(signal.ITIMER_REAL,0.0002,0.0002)
signal.setitimer(signal.ITIMER_REAL,0.01,0.01)
signal.setitimer(signal.ITIMER_REAL,0.0002,0.0002)
#signal.setitimer(signal.ITIMER_REAL,0.01,0.01)
#signal.setitimer(signal.ITIMER_REAL,1,1)
while (1):
0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment