1.1 --- a/FutabaGP1212A02.h Fri Aug 29 22:32:13 2014 +0200
1.2 +++ b/FutabaGP1212A02.h Sat Aug 30 18:43:54 2014 +0200
1.3 @@ -36,7 +36,7 @@
1.4 virtual void Fill();
1.5
1.6 //Specific to GP1212A02A
1.7 - void SetFrame(int aSize, unsigned char* aPixels);
1.8 +
1.9
1.10 //
1.11 void RequestDeviceId();
1.12 @@ -56,6 +56,37 @@
1.13 char* DeviceId();
1.14 char* FirmwareRevision();
1.15
1.16 + enum TBmpBoxId
1.17 + {
1.18 + EBmpBoxIdNull=0x30,
1.19 + EBmpBoxIdOne=0x31,
1.20 + EBmpBoxIdTwo=0x32,
1.21 + EBmpBoxIdThree=0x33
1.22 + };
1.23 +
1.24 + enum TTarget
1.25 + {
1.26 + ETargetDisplayWindow=0x30,
1.27 + ETargetDataMemory=0x31
1.28 + };
1.29 +
1.30 +
1.31 + enum TDirection
1.32 + {
1.33 + EDirectionY=0x30,
1.34 + EDirectionX=0x31
1.35 + };
1.36 +
1.37 +
1.38 + //General setting command
1.39 + void BmpDataInput(TTarget aTarget, unsigned short aAddress, TDirection aDirection, unsigned short aSize, unsigned char* aPixels);
1.40 +
1.41 + //BMP box
1.42 + void BmpBoxSetting(TBmpBoxId aBoxId, unsigned short aAddress, int aWidth, int aHeight);
1.43 + void BmpBoxSelect(TBmpBoxId aBoxId);
1.44 + void BmpBoxDataMemoryTransfer(unsigned short aAddress);
1.45 + void BmpBoxDataInput(unsigned short aSize, unsigned char* aPixels);
1.46 +
1.47 private:
1.48 unsigned char OffScreenY() const;
1.49 void SendClearCommand();