Kruemelbahn / HeartBeat

AVR-Heartbeat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HeartBeat

This is a simple library for usage with Arduino-platform.
The library indicates the running on an AVR program using a LED lighting up and down like a heart beats.
Tested on ATmega328.

Note

If you use the delay()-function in your code, you can use the yield()1-function to keep HeartBeat alive during delay, e.g.

#include <HeartBeat.h>
HeartBeat oHeartbeat;
...
void yield(void) { oHeartbeat.beat(); }

Place your(this) yield()-function at bottom of your main-ino-file

Footnotes

  1. yield() is defined in 'hooks.c' (placed normally in '\AppData\Local\Arduino15\packages\arduino\hardware\avr<version>\cores\arduino'

About

AVR-Heartbeat

License:Other


Languages

Language:C++ 100.0%