# HG changeset patch # User sl # Date 1400705714 -7200 # Node ID 11a0e8a2346e19ec65c477ce2f1369e930e635b0 # Parent 4c3d32f38c091adf733595ef7fea28bd5bd5fed7 Adding very basic code for testing our brand new Futaba VFD class without breaking generic code. diff -r 4c3d32f38c09 -r 11a0e8a2346e FutabaVfd.cpp --- a/FutabaVfd.cpp Wed May 21 22:43:19 2014 +0200 +++ b/FutabaVfd.cpp Wed May 21 22:55:14 2014 +0200 @@ -206,7 +206,7 @@ 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. report[8]=0x00; //Size of pixel data in bytes (MSB) report[9]=aSize; //Size of pixel data in bytes (LSB) - memset(report.Buffer()+10, aValue, KFutabaMaxHidReportSize); + memset(report.Buffer()+10, aValue, aSize); //iOutputReportBuffer[10]=aValue; //Pixel data Write(report); } diff -r 4c3d32f38c09 -r 11a0e8a2346e FutabaVfd.h --- a/FutabaVfd.h Wed May 21 22:43:19 2014 +0200 +++ b/FutabaVfd.h Wed May 21 22:55:14 2014 +0200 @@ -113,7 +113,7 @@ /** */ -class FutabaVfd : protected HidDevice +class FutabaVfd : public HidDevice { public: virtual int MinBrightness()=0; diff -r 4c3d32f38c09 -r 11a0e8a2346e MainWindow.h --- a/MainWindow.h Wed May 21 22:43:19 2014 +0200 +++ b/MainWindow.h Wed May 21 22:55:14 2014 +0200 @@ -119,6 +119,10 @@ struct hid_device_info *devices; hid_device *connected_device; + + //Futaba + GP1212A01A iVfd01; + }; #endif // \ No newline at end of file diff -r 4c3d32f38c09 -r 11a0e8a2346e test.cpp --- a/test.cpp Wed May 21 22:43:19 2014 +0200 +++ b/test.cpp Wed May 21 22:55:14 2014 +0200 @@ -196,6 +196,11 @@ onRescan(NULL, 0, NULL); + //Just testing our new VFD class + iVfd01.Open(); + iVfd01.SetAllPixels(true); + iVfd01.Close(); + #ifdef __APPLE__ init_apple_message_system();