Attiny2313 PWM flashing LED example
A basic PWM example using an Attiny2313 Schematic Code [c] #define F_CPU 1000000UL #include <avr/io.h> #include <util/delay.h> int main(void) { DDRB |= (1 << PB2); // PWM output on PB2…
A basic PWM example using an Attiny2313 Schematic Code [c] #define F_CPU 1000000UL #include <avr/io.h> #include <util/delay.h> int main(void) { DDRB |= (1 << PB2); // PWM output on PB2…