FutabaGP1212.h
author sl
Sat, 06 Sep 2014 18:39:49 +0200
changeset 21 fa7c9f9140aa
parent 8 5a9dbbc40c6b
child 29 9b44c6e1651c
permissions -rw-r--r--
GP1212A02: Adding select font size command.
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:
sl@8
    23
	//From FutabaVfd
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