roidayan / LivoloPi

Control Livolo switches from Raspberry Pi
MIT License
3 stars 1 forks source link

Adjust timing #1

Open djratza opened 5 years ago

djratza commented 5 years ago

Hello,

Is it possible to adjust the timing for pulse high low and so on, the code is working for me but not perfect, thanks for sharing.

roidayan commented 5 years ago

hi it's not exposed in the command line but you can edit LivoloTx.cpp

define LIVOLO_PREAMBLE_DURATION 525

define LIVOLO_ZERO_DURATION 120

define LIVOLO_ONE_DURATION 315

define LIVOLO_NUM_REPEATS 150

let me know if you learn something :)

thanks, Roi