C++

C and C++ are some of the most widely used programming languages, having managed to hang on for decades while old rivals faded and new upstarts became popular. They are valued for their power, speed, and ability to allow novice programmers to learn (through errors) how computers really work. 

Download

Visit the Downloads page to download the C++ Finch package for your OS.

Documentation

Unlike most other languages we currently support, our C++ library was written from the ground up and so has a different feature set from the Finch Java library. Functions currently available in the C++ library are covered in the C++ documentation.

After you have downloaded the Finch C++ package, follow the various instructions for compiling and running programs.

Important Files and Folders

The following files and folders are common to all C++ downloads:

Finch.cpp and Finch.h - The Finch class source and header files.

hipapi.h - The header file for HIDAPI, the third-party cross-platform class used to communicate over USB. 

hidapi.dll and .lib (Windows), hid.c (Mac and Linux) - Contains the HIDAPI source.

SampleMain.cpp - A skeleton main file containing all that is necessary to begin writing a Finch C++ program.

CommandLineFinch.cpp - A program which tests all of the Finch class functions and provides access to them with a simple command line interface. By default, this file will be run if the user does not change the IDE or Makefile configuration options.

Documentation - A local copy of the Finch C++ class documentation

Licensing - Licensing information for the Finch C++ package.

Version Information

Version 1.01 of the Finch C++ package is now available and has been successfully tested on Windows XP 32-bit, Windows 7 64-bit, Mac OS 10.6, and Ubuntu 10.04. 

Revision history:

Version 1.01 (5/31/2011) - Fixed finchRead bug that would cause hanging after 127 reads.

Version 1.0 (5/29/2011) - First release.