Simple heartbeat sample code (using gpio)