I am studying micro controllers for the second time (I don't know much about these besides basic ATMega128 programming) and I'm looking for help in a school project. I need to create a project in which:
- I control a led (or a fan) via PWM (through the timer counters, etc. etc.)
- I create a 1Hz wave on the output of the microcontroller
I'm having trouble finding where to start. Besides having to build everything in a breadboard (ATMega328p, the led/fan, etc.), I have no idea how to start the code even though I have to write it in C (since I'm decent at it).