1.1 --- a/src/FutabaVfd.cpp Thu May 22 13:46:37 2014 +0200
1.2 +++ b/src/FutabaVfd.cpp Thu May 22 14:57:11 2014 +0200
1.3 @@ -213,7 +213,8 @@
1.4 */
1.5 void GP1212A01A::Clear()
1.6 {
1.7 - //Send Clear display command
1.8 + //1BH,5BH,32H,4AH
1.9 + //Send Clear Display Command
1.10 FutabaVfdReport report;
1.11 report[0]=0x00; //Report ID
1.12 report[1]=0x04; //Report length
1.13 @@ -225,6 +226,24 @@
1.14 }
1.15
1.16 /**
1.17 +Change our display position within our buffer.
1.18 +*/
1.19 +void GP1212A01A::SetDisplayPosition(DW aDw,int aX, int aY)
1.20 + {
1.21 + //1BH,5BH,Dw,Px,Py
1.22 + //Send Display Position Settings Command
1.23 + FutabaVfdReport report;
1.24 + report[0]=0x00; //Report ID
1.25 + report[1]=0x05; //Report length
1.26 + report[2]=0x1B; //Command ID
1.27 + report[3]=0x5B; //Command ID
1.28 + report[4]=aDw; //Specify our DW
1.29 + report[5]=aX; //X coordinate of our DW top-left corner
1.30 + report[5]=aY; //Y coordinate of our DW top-left corner
1.31 + Write(report);
1.32 + }
1.33 +
1.34 +/**
1.35 */
1.36 void GP1212A01A::RequestId()
1.37 {