Hi, I need to make power control module for my raspberry pi with circuitpython/Trinket m0.
I have everything setup'd from raspberry side. However Im new to circuitpython, I dont have time to learn it.
analog input = ignition_wire
digital input = rasp_state
digital output = poweron_relay
digital output = shtdwn
Ive wrote sample code([login to view URL]) what I need, however I dont know how to make it work with circuitpython.
Ive also included diagram, so it would be easier to understand what Im doing.
Also I need to check both if statements([login to view URL]) 5 times in 5 seconds.
The one that can do it fastest and properly will win.
P.S. Do not offer different raspberry poweron solutions.
I need just base, later on small things ill do it by myself.