@<
[[code]]switch.psu.enable true # turn atx on/off
switch.psu.input_on_command M80 #
switch.psu.input_off_command M81 #
switch.psu.output_pin 0.26o! # open drain, inverted
switch.psu.output_type digital # on/off only
switch.psu.fail_safe_set_to 1 # so the ATX turns off on a system crash[[/code]]
>@
I’m using the code pasted above in my config.
M80 turns on the PSU and M81 turns it off.
When I unplug USB (disconnect the 5v), my PSU pulses on and off nonstop.
Any suggestions? I may try using the MOSFET at 2.6, but I’d rather not if I don’t need to. (I already have a fan on 2.4 like the switch docs suggest using).
Imported from wikidot