eddie.rodgers
New Member
Hi Guys,
For an absolute 76 year old beginner I need some programming help please.
I have made the axe105 dice and it works well except when it is in standby and running the main loop waiting for pushbutton input 3 to be turned on, it draws 500 ua which would be a bit touch on long term AAA battery drain.
I envisage adding to the main loop a command that allows the main program to loop maybe 50 times as is (waiting for pushbutton as dice is moved around the table) but if this does not happen (as when game is stopped) then put the picaxe to sleep or nap.
I would like it to restart the main loop when the pushbutton is pushed for input 3 and restart the main loop for a few cycles before doing the “make number”routine.
I am afraid I have never programmed before so not sure where to go.
Any ideas please - it would make me (and my grandson) very happy.
Thanks
Eddie
For an absolute 76 year old beginner I need some programming help please.
I have made the axe105 dice and it works well except when it is in standby and running the main loop waiting for pushbutton input 3 to be turned on, it draws 500 ua which would be a bit touch on long term AAA battery drain.
I envisage adding to the main loop a command that allows the main program to loop maybe 50 times as is (waiting for pushbutton as dice is moved around the table) but if this does not happen (as when game is stopped) then put the picaxe to sleep or nap.
I would like it to restart the main loop when the pushbutton is pushed for input 3 and restart the main loop for a few cycles before doing the “make number”routine.
I am afraid I have never programmed before so not sure where to go.
Any ideas please - it would make me (and my grandson) very happy.
Thanks
Eddie