Hi
I have Atmega328 microcontroller as on this schematic.
I am not very experienced with micro controllers. I would like to know how I could program those instructions in AVR programming language:
If pushbutton is pressed
-output of pin1 = 3V
-output of pin2 = 0V
Also, I would like to know which pins from the attached schematic should I use for that: analog, digital or other type?
Thank you
I have Atmega328 microcontroller as on this schematic.
I am not very experienced with micro controllers. I would like to know how I could program those instructions in AVR programming language:
If pushbutton is pressed
-output of pin1 = 3V
-output of pin2 = 0V
Also, I would like to know which pins from the attached schematic should I use for that: analog, digital or other type?
Thank you
Attachments
-
139.3 KB Views: 10
