Hello people;
Im relatively new to this forum and programming AVR, not a total dummy but i need some help.
So, the project is running the led bulbs via AVR to buck converters and finally LEDS.
Ill put a diagram schematic so you can visualize how it looks.So im having problems with programming the AVR not how to program the chip,jet i have problem with code :/.
I know its stupid to ask someone for a code but i have no choice then ask for help.
What code needs to be doing.
PSU on -> powers the ATMega328->checks the if PIN D.2 is 1 ->if so gives power to relay that powers buck converters-> 14 pins on atmega328p turns on and off the pins to turn the bucks on and off which turn LEDS.
So now i have question about interrupts i want to be able to stop the code and turn it off or on(relay and everything off or on)if one of interrupts is triggered and if other interrupt is triggered i want it to change the way it blinks and if i press it again to change again so several codes will be needed to run the lights.I need someone to help me with that im writing code in atmel studio 6. Please help and thank you very much...any questions or any details please ask ill do my best to answer and clarify.
Here is the pic if you can see any thing :/

Im relatively new to this forum and programming AVR, not a total dummy but i need some help.
So, the project is running the led bulbs via AVR to buck converters and finally LEDS.
Ill put a diagram schematic so you can visualize how it looks.So im having problems with programming the AVR not how to program the chip,jet i have problem with code :/.
I know its stupid to ask someone for a code but i have no choice then ask for help.
What code needs to be doing.
PSU on -> powers the ATMega328->checks the if PIN D.2 is 1 ->if so gives power to relay that powers buck converters-> 14 pins on atmega328p turns on and off the pins to turn the bucks on and off which turn LEDS.
So now i have question about interrupts i want to be able to stop the code and turn it off or on(relay and everything off or on)if one of interrupts is triggered and if other interrupt is triggered i want it to change the way it blinks and if i press it again to change again so several codes will be needed to run the lights.I need someone to help me with that im writing code in atmel studio 6. Please help and thank you very much...any questions or any details please ask ill do my best to answer and clarify.
Here is the pic if you can see any thing :/
