1.1 --- a/inc/FutabaVfd.h Thu May 22 11:29:23 2014 +0200
1.2 +++ b/inc/FutabaVfd.h Thu May 22 13:46:37 2014 +0200
1.3 @@ -1,4 +1,6 @@
1.4 -
1.5 +//
1.6 +//
1.7 +//
1.8
1.9 #ifndef FUTABA_VFD_H
1.10 #define FUTABA_VFD_H
1.11 @@ -6,6 +8,15 @@
1.12 #include "hidapi.h"
1.13 #include "HidDevice.h"
1.14
1.15 +#ifndef MIN
1.16 +#define MIN(a,b) (((a)<(b))?(a):(b))
1.17 +#endif
1.18 +
1.19 +#ifndef MAX
1.20 +#define MAX(a,b) (((a)>(b))?(a):(b))
1.21 +#endif
1.22 +
1.23 +
1.24 //This was computed from our number of pixels as follow 256x64/8/64 = 32 + 1 = 33
1.25 //+1 was added for our header
1.26 const int KFutabaMaxCommandOutputReport = 33;
1.27 @@ -22,9 +33,8 @@
1.28
1.29 //typedef struct hid_device_info HidDeviceInfo;
1.30
1.31 -
1.32 -
1.33 /**
1.34 +Define a Futaba HID report.
1.35 */
1.36 class FutabaVfdReport: public HidReport<KFutabaMaxHidReportSize>
1.37 {
1.38 @@ -112,6 +122,7 @@
1.39
1.40 //Specific to GP1212A01A
1.41 void SetPixelBlock(int aX, int aY, int aHeight, int aSize, unsigned char aValue);
1.42 + void SetPixelBlock(int aX, int aY, int aHeight, int aSize, unsigned char* aPixels);
1.43 //
1.44 void RequestId();
1.45 void RequestFirmwareRevision();