You need to have avrdude and avr-gcc installed on a Raspberry Pi.
These two sites were very helpful in wiring up the ATmega328P to the GPIO pins on the Raspberry Pi:
You need to have avrdude and avr-gcc installed on a Raspberry Pi.
These two sites were very helpful in wiring up the ATmega328P to the GPIO pins on the Raspberry Pi:
#include <avr/sleep.h> | |
#include <avr/wdt.h> | |
volatile bool wdtFired; | |
// watchdog interrupt | |
ISR (WDT_vect) | |
{ | |
wdt_disable(); // disable watchdog | |
wdtFired = true; |