hthiery / python-lacrosse

Pure Python Jeelink LaCrosse Library
GNU Lesser General Public License v2.1
20 stars 9 forks source link

LED call & wait #7

Open Chris-ParkIT opened 4 years ago

Chris-ParkIT commented 4 years ago

I am trying to run this on a windows machine, I have got the py code rather than installed the package

firstly in clitool line 91 the call to lacrosse.led_config(state) should be to led_mode_state(state) the command to set the blue led should be 1l (lowercase L) not 1a

if I run with parameters -d /COM3 led on nothing happens putting a time.sleep(3) at the start of led_mode_state() the blue light comes on

If I run -d /COM3 info the data returned is 'b\r\n' and so all info shows as nothing running '-d /COM3 scan' nothing gets returned. I assume it is a timing issue but don't have the experience or knowledge to get any further.

hthiery commented 4 years ago

I am trying to run this on a windows machine, I have got the py code rather than installed the package

firstly in clitool line 91 the call to lacrosse.led_config(state) should be to led_mode_state(state) the command to set the blue led should be 1l (lowercase L) not 1a

You're right. this was never tested. could you please create a pull-request for that?

if I run with parameters -d /COM3 led on nothing happens putting a time.sleep(3) at the start of led_mode_state() the blue light comes on

If I run -d /COM3 info the data returned is 'b\r\n' and so all info shows as nothing running '-d /COM3 scan' nothing gets returned. I assume it is a timing issue but don't have the experience or knowledge to get any further.

what firmware version of jeelink dongle do you use?