Talk:Soft Start
polling is probably better than interrupts
display
- make an array A(1) -- A(8)
set display to request input one number at a time
for 8 numbers
convert the number to binary
step out each bit one at a time
display
- to fine tune the output
allow changing any one of the numbers
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 .