Commit 41932eda authored by Daniel Stan's avatar Daniel Stan Committed by Daniel Stan

lotus qui marche

parent 8ccf9c7b
......@@ -19,7 +19,7 @@ void setup()
{
// Default light
pinMode(PIN_BULB, OUTPUT);
digitalWrite(PIN_BULB, LOW);
digitalWrite(PIN_BULB, HIGH);
// Serial !
Serial.begin(9600);
......
#!/bin/bash
DEV=/dev/rfcomm2
DEV=/dev/rfcomm3
echo "$1" > $DEV
......@@ -76,11 +76,18 @@ def process_line(response):
# return
# TODO
if response.startswith(b'Unkwon: 16621663'):
call(['lotus', '1'])
call(['lotus', 'U'])
return
if response.startswith(b'Unkwon: 16625743'):
call(['lotus', '0'])
call(['lotus', 'D'])
return
if response.startswith(b'Unkwon: 16607383'):
call(['lotus', 'f'])
return
if response.startswith(b'Unkwon: 16623703'):
call(['lotus', 'o'])
return
if response.startswith(CONTROL):
key = response[len(CONTROL):].strip().lower()
if key == b'pause':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment