diff -r 0d9d062609eb -r 23cacc1d17a3 inc/FutabaVfd.h --- a/inc/FutabaVfd.h Thu May 22 11:29:23 2014 +0200 +++ b/inc/FutabaVfd.h Thu May 22 13:46:37 2014 +0200 @@ -1,4 +1,6 @@ - +// +// +// #ifndef FUTABA_VFD_H #define FUTABA_VFD_H @@ -6,6 +8,15 @@ #include "hidapi.h" #include "HidDevice.h" +#ifndef MIN +#define MIN(a,b) (((a)<(b))?(a):(b)) +#endif + +#ifndef MAX +#define MAX(a,b) (((a)>(b))?(a):(b)) +#endif + + //This was computed from our number of pixels as follow 256x64/8/64 = 32 + 1 = 33 //+1 was added for our header const int KFutabaMaxCommandOutputReport = 33; @@ -22,9 +33,8 @@ //typedef struct hid_device_info HidDeviceInfo; - - /** +Define a Futaba HID report. */ class FutabaVfdReport: public HidReport { @@ -112,6 +122,7 @@ //Specific to GP1212A01A void SetPixelBlock(int aX, int aY, int aHeight, int aSize, unsigned char aValue); + void SetPixelBlock(int aX, int aY, int aHeight, int aSize, unsigned char* aPixels); // void RequestId(); void RequestFirmwareRevision();