1.1 --- a/FutabaVfd.cpp Wed May 21 22:43:19 2014 +0200
1.2 +++ b/FutabaVfd.cpp Wed May 21 22:55:14 2014 +0200
1.3 @@ -206,7 +206,7 @@
1.4 report[7]=aHeight; //Y length before return. Though outside the specs, setting this to zero apparently allows us to modify a single pixel without touching any other.
1.5 report[8]=0x00; //Size of pixel data in bytes (MSB)
1.6 report[9]=aSize; //Size of pixel data in bytes (LSB)
1.7 - memset(report.Buffer()+10, aValue, KFutabaMaxHidReportSize);
1.8 + memset(report.Buffer()+10, aValue, aSize);
1.9 //iOutputReportBuffer[10]=aValue; //Pixel data
1.10 Write(report);
1.11 }
2.1 --- a/FutabaVfd.h Wed May 21 22:43:19 2014 +0200
2.2 +++ b/FutabaVfd.h Wed May 21 22:55:14 2014 +0200
2.3 @@ -113,7 +113,7 @@
2.4
2.5 /**
2.6 */
2.7 -class FutabaVfd : protected HidDevice
2.8 +class FutabaVfd : public HidDevice
2.9 {
2.10 public:
2.11 virtual int MinBrightness()=0;
3.1 --- a/MainWindow.h Wed May 21 22:43:19 2014 +0200
3.2 +++ b/MainWindow.h Wed May 21 22:55:14 2014 +0200
3.3 @@ -119,6 +119,10 @@
3.4
3.5 struct hid_device_info *devices;
3.6 hid_device *connected_device;
3.7 +
3.8 + //Futaba
3.9 + GP1212A01A iVfd01;
3.10 +
3.11 };
3.12
3.13 #endif //
3.14 \ No newline at end of file
4.1 --- a/test.cpp Wed May 21 22:43:19 2014 +0200
4.2 +++ b/test.cpp Wed May 21 22:55:14 2014 +0200
4.3 @@ -196,6 +196,11 @@
4.4
4.5 onRescan(NULL, 0, NULL);
4.6
4.7 + //Just testing our new VFD class
4.8 + iVfd01.Open();
4.9 + iVfd01.SetAllPixels(true);
4.10 + iVfd01.Close();
4.11 +
4.12
4.13 #ifdef __APPLE__
4.14 init_apple_message_system();