FutabaGP1212.h
changeset 9 6b08e3e81cf3
parent 8 5a9dbbc40c6b
child 29 9b44c6e1651c
     1.1 --- a/FutabaGP1212.h	Thu Aug 21 21:30:38 2014 +0200
     1.2 +++ b/FutabaGP1212.h	Thu Aug 21 21:53:35 2014 +0200
     1.3 @@ -5,18 +5,27 @@
     1.4  #ifndef FUTABA_GP1212_H
     1.5  #define FUTABA_GP1212_H
     1.6  
     1.7 -#include "Display.h"
     1.8 +#include "FutabaVfd.h"
     1.9 +
    1.10 +const int KGP12xWidthInPixels = 256;
    1.11 +const int KGP12xHeightInPixels = 64;
    1.12 +const int KGP12xPixelsPerByte = 8;
    1.13 +const int KGP12xFrameBufferSizeInBytes = KGP12xWidthInPixels*KGP12xHeightInPixels/KGP12xPixelsPerByte; //256*64/8=2048
    1.14 +const int KGP12xFrameBufferPixelCount = KGP12xWidthInPixels*KGP12xHeightInPixels;
    1.15  
    1.16  
    1.17  /**
    1.18  Common functionality between GP1212A01A and GP1212A02A
    1.19  */
    1.20 -class GP1212XXXX : public GraphicDisplay
    1.21 +class GP1212XXXX : public FutabaGraphicDisplay
    1.22  	{
    1.23  public:
    1.24  	//From FutabaVfd
    1.25      virtual int MinBrightness() const {return 0;}
    1.26      virtual int MaxBrightness() const {return 5;}
    1.27 +    virtual int WidthInPixels() const {return KGP12xWidthInPixels;}
    1.28 +    virtual int HeightInPixels() const {return KGP12xHeightInPixels;}
    1.29 +
    1.30  	};
    1.31  
    1.32