Talk:Soft Start
From Batchelor-s
Jump to navigationJump to search
polling is probably better than interrupts
perhaps set up a string in memory (how)
read bit
test input
if hi output bit or test input
if address > 127 goto test input
- last bit should be 1
- repeat - full ON
bump address
if > 127 then test input
IF ^C end #or clean up
goto read bit
xxxxxxxxxxxx
enter 16 numbers from keyboard
(16 bytes - 128 bits)
====
- is this 5V or 3.3V ports ?
- AND gate may need 5V
from gpiozero import LED, Button
led = LED(17)
button = Button(2)
while True:
. button.wait_for_press() #clock
. led.on() # drive to opto
. button.wait_for_release()
. led.off() #how long ON ?
- will it need wave shaping
- or will opto signal work ?
xxxxxxxxxxxxxxcc
clock to AND gate
data to AND gate
. to button (wait-release) . led (on-off) drives optoisolator .