FutabaGP1212.h
author StephaneLenclud
Thu, 05 Feb 2015 14:02:27 +0100
changeset 28 0d426caeaefe
parent 8 5a9dbbc40c6b
child 29 9b44c6e1651c
permissions -rw-r--r--
MDM166AA: more accurate time setting and cleanup.
     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 FutabaVfd
    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