In this example we connect an LED to PB2 (Pin 14) of an Attiny 2313. The PWM output is obtained from the OC0A output of timer/counter0. Schematic Code Avr studio code example [codesyntax lang="c"] #define F_CPU 1000000UL...
This was one of the first Attint chips that I looked at, so I decided to create a simple DIY development board (more on that later) and create some basic.
The hello world of examples this time for an ATTINY85, although this should work with similar chips as well. We will connect the LED to pin 2 (PB3) and simply.