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