FutabaGP1212.h
author StephaneLenclud
Thu, 05 Feb 2015 15:09:48 +0100
changeset 30 7f649078cb52
parent 9 6b08e3e81cf3
child 35 638eb0763e20
permissions -rw-r--r--
MDM166AA: Clock is now synchronized at the second.
     1 //
     2 //
     3 //
     4 
     5 #ifndef FUTABA_GP1212_H
     6 #define FUTABA_GP1212_H
     7 
     8 #include "FutabaVfd.h"
     9 
    10 const int KGP12xWidthInPixels = 256;
    11 const int KGP12xHeightInPixels = 64;
    12 const int KGP12xPixelsPerByte = 8;
    13 const int KGP12xFrameBufferSizeInBytes = KGP12xWidthInPixels*KGP12xHeightInPixels/KGP12xPixelsPerByte; //256*64/8=2048
    14 const int KGP12xFrameBufferPixelCount = KGP12xWidthInPixels*KGP12xHeightInPixels;
    15 
    16 
    17 /**
    18 Common functionality between GP1212A01A and GP1212A02A
    19 */
    20 class GP1212XXXX : public FutabaGraphicDisplay
    21 	{
    22 public:
    23 	//From GraphicDisplay
    24     virtual int MinBrightness() const {return 0;}
    25     virtual int MaxBrightness() const {return 5;}
    26     virtual int WidthInPixels() const {return KGP12xWidthInPixels;}
    27     virtual int HeightInPixels() const {return KGP12xHeightInPixels;}
    28 
    29 	};
    30 
    31 
    32 
    33 #endif