radiogareth
Senior Member
Just chucking this idea out to see what people think.....
Hardware: 14M2 with potentiometer feed to C4 ADC and digital input on C3, a push to make with pullup enabled.
8 LEDs driven from b0 to b5, plus C0 and C1.
Software:
Power up, LEDs reflect BINARY value set on potentiometer (0-255)
Press button, timer starts counting minutes, LSB lights at 1 minute, etc until they are all lit = over 4 hours.
Piezo on C2 for when time is up.
Be nice if LSB could also flash 100mSec every second to show counting in taking place.
Question: How to combine ports B and C to simply relfct the contets of eg B0 (0-255).
If it was a single port then the let pins=b0 would work....
There must be a better way than a long string of if thens.....
Suggestions please....or shall I go straight to a 20M2 where the whole port is accessible on one side??
TIA
Hardware: 14M2 with potentiometer feed to C4 ADC and digital input on C3, a push to make with pullup enabled.
8 LEDs driven from b0 to b5, plus C0 and C1.
Software:
Power up, LEDs reflect BINARY value set on potentiometer (0-255)
Press button, timer starts counting minutes, LSB lights at 1 minute, etc until they are all lit = over 4 hours.
Piezo on C2 for when time is up.
Be nice if LSB could also flash 100mSec every second to show counting in taking place.
Question: How to combine ports B and C to simply relfct the contets of eg B0 (0-255).
If it was a single port then the let pins=b0 would work....
There must be a better way than a long string of if thens.....
Suggestions please....or shall I go straight to a 20M2 where the whole port is accessible on one side??
TIA