Hi,
I successfully flashed openBK to my Globo Connor 41386-30sh ceiling Light with Beken CB3S chip (BK7321N).
thank you!
Cool? Ranking DIY
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam
// P21 role is Btn, a power button that works without scripting
// set button hold/repeat/etc times
SetButtonTimes 10 3 3
// alias to turn off LED after 4 secs (repeating event with 1 repeat)
alias add_turnoff_event addRepeatingEvent 4 1 led_enableAll 0
// button events - 23, 22, etc are pin numbers
addEventHandler OnHold 23 add_dimmer 10
addEventHandler OnHold 22 add_dimmer -10
addEventHandler OnDblClick 22 led_dimmer 5
addEventHandler OnDblClick 23 led_dimmer 100
addEventHandler OnClick 20 add_turnoff_event
// IR events
addEventHandler2 IR_Samsung 0x707 0x62 add_dimmer 10
addEventHandler2 IR_Samsung 0x707 0x65 add_dimmer -10
addEventHandler2 IR_Samsung 0x707 0x61 led_enableAll 0
addEventHandler2 IR_Samsung 0x707 0x60 led_enableAll 1
Bulbs incl. | Yes | bulbs | LEDs | Power consumption | 30 watts | Lumens (source) | 1 x 3150 lumens | Lumens (effective) | 1 x 2250 lumens | memory function | Remote control wall switch | Remote control | yes (infrared) | Battery incl. | 2*AAA | applications | Tuya | Lifespan | 20000h | Tension | 230 volts | Degree of Protection | IP20 | Protection class | 1 | CCT | From 3000 to 6500 Kelvin |
PWM | IO | PWM0 | P6 | PWM1 | P7 | PWM2 | P8 | PWM3 | P9 | PWM4 | P26 | PWM5 | P24 |
p.kaczmarek2 wrote:
Here is how a sample IR script looks like:// P21 role is Btn, a power button that works without scripting // set button hold/repeat/etc times SetButtonTimes 10 3 3 // alias to turn off LED after 4 secs (repeating event with 1 repeat) alias add_turnoff_event addRepeatingEvent 4 1 led_enableAll 0 // button events - 23, 22, etc are pin numbers addEventHandler OnHold 23 add_dimmer 10 addEventHandler OnHold 22 add_dimmer -10 addEventHandler OnDblClick 22 led_dimmer 5 addEventHandler OnDblClick 23 led_dimmer 100 addEventHandler OnClick 20 add_turnoff_event // IR events addEventHandler2 IR_Samsung 0x707 0x62 add_dimmer 10 addEventHandler2 IR_Samsung 0x707 0x65 add_dimmer -10 addEventHandler2 IR_Samsung 0x707 0x61 led_enableAll 0 addEventHandler2 IR_Samsung 0x707 0x60 led_enableAll 1
alexandrgredasov wrote:
Hello. My IR receiver accepts codes of this type:
IR_NEC 0x80 0x1 0
IR_NEC 0x80 0x1 1
IR_NEC 0x80 0x1E 0
IR_NEC 0x80 0x1E 1
If I insert my code into this line
p.kaczmarek2 wrote:Would that solve your issue?
p.kaczmarek2 wrote:Hmm okay so please do fiirst a full 2MB flash read (if you can), for the firmware backup, and then flash OBK and try to configure it. I will help if any issue arises.