How to switch the Atom Socket(HLW8023) on/off?
-
I can't get any description about the HLW8032 Socket's controll ways. Could anybody who has the python code to do this give me some tips? Thanks a lot.
-
Hello @tgprivate
from the schematic the relay is switched on/off through GPIO23.
Using UiFlow Pin blocks and looking at the Python code I get this:
from m5stack import * from m5ui import * from uiflow import * import machine pin0 = machine.Pin(23, mode=machine.Pin.OUT, pull=machine.Pin.PULL_UP) pin0.on() pin0.off()
Note: untested
Thanks
Felix -
@felmue It works according to your method, thank you very much!
-