This is a .NET version (written in C#) of the Heartbeat application that flashes an LED on your development system.
It demonstrates the use of CreateFile, WriteFile, GetLastError and CloseHandle via PInvoke.
Heartbeat.NET takes an optional command-line parameter for the number of iterations, defaulting to infinite.
This application requires a CE.NET image and the Compact Framework installed on the device.
Key APIs Used
CreateFile WriteFile ReadFile
Lines of Code: 112
Source Download Rev 1 - May 6, 02 (9k zip). modified March 31, 02 (ctacke) - added key APIs and LOC Edited by akidder 20-Feb-2003: Add link to Compact Framework link page (.NET tools). Edited by akidder 7-Jan-2003: correct release number/link for download