FutabaGP1212.h
author sl
Sat, 06 Sep 2014 15:54:51 +0200
changeset 20 3b7acc7fb64b
parent 8 5a9dbbc40c6b
child 29 9b44c6e1651c
permissions -rw-r--r--
GP1212A02: Implement commands for: font char update, font action and hard reset.
     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