Delays

Linux Functions usleep sleep BCM2835 Library The bcm2835 library by Mike McCauley includes some useful delay functions:

Read More

clock_gettime() For Acurate Timing

Setting up to use clockgettime() Include the following header file: You also need to add the librt library to the linker Using a Geany makefile, add this: Using eclipse: Right click your project > Properties > C/C++ Build > Settings > Cygwin C++ Linker > Libraries.  Add a new library entry: rt Example Which Provides Accurate uS Timing […]

Read More