Skip to content

Kruemelbahn/HeartBeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'