fallaciez
Newbie level 1
hello ladies & gents,
I am currently working on making a clock/stopwatch using the ATMEGA 328...
I think that I have most of my code down, but I need to know how to:
(1) - Have the board determine where an interrupt has come from... Button 1, 2 or 3 (let's say they are going into the board's pins 2, 4 and 8 - relatively)... so that i can then code execution senarios depending on interrupt location.
and,
(2) - How to jump to specific code? I am coding in C; and, if I remember correctly, in C, it is "goto;" however, when i write the code in arduino, it doesn't change the color of the word "goto" as it recognizing it as a function... i was wondering, maybe it will still execute when it's actually running? or does arduino have a different command to execute jumps?
thank you,
P.
I am currently working on making a clock/stopwatch using the ATMEGA 328...
I think that I have most of my code down, but I need to know how to:
(1) - Have the board determine where an interrupt has come from... Button 1, 2 or 3 (let's say they are going into the board's pins 2, 4 and 8 - relatively)... so that i can then code execution senarios depending on interrupt location.
and,
(2) - How to jump to specific code? I am coding in C; and, if I remember correctly, in C, it is "goto;" however, when i write the code in arduino, it doesn't change the color of the word "goto" as it recognizing it as a function... i was wondering, maybe it will still execute when it's actually running? or does arduino have a different command to execute jumps?
thank you,
P.