FutabaGP1212.h
author StephaneLenclud
Tue, 10 Feb 2015 17:14:09 +0100
changeset 35 638eb0763e20
parent 29 9b44c6e1651c
permissions -rw-r--r--
Liscense and Copyright fix.
     1 //
     2 // Copyright (C) 2014-2015 Stéphane Lenclud.
     3 //
     4 // This file is part of MiniDisplay.
     5 //
     6 // MiniDisplay is free software: you can redistribute it and/or modify
     7 // it under the terms of the GNU General Public License as published by
     8 // the Free Software Foundation, either version 3 of the License, or
     9 // (at your option) any later version.
    10 //
    11 // MiniDisplay is distributed in the hope that it will be useful,
    12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    14 // GNU General Public License for more details.
    15 //
    16 // You should have received a copy of the GNU General Public License
    17 // along with MiniDisplay.  If not, see <http://www.gnu.org/licenses/>.
    18 //
    19 
    20 #ifndef FUTABA_GP1212_H
    21 #define FUTABA_GP1212_H
    22 
    23 #include "FutabaVfd.h"
    24 
    25 const int KGP12xWidthInPixels = 256;
    26 const int KGP12xHeightInPixels = 64;
    27 const int KGP12xPixelsPerByte = 8;
    28 const int KGP12xFrameBufferSizeInBytes = KGP12xWidthInPixels*KGP12xHeightInPixels/KGP12xPixelsPerByte; //256*64/8=2048
    29 const int KGP12xFrameBufferPixelCount = KGP12xWidthInPixels*KGP12xHeightInPixels;
    30 
    31 
    32 /**
    33 Common functionality between GP1212A01A and GP1212A02A
    34 */
    35 class GP1212XXXX : public FutabaGraphicDisplay
    36 	{
    37 public:
    38 	//From GraphicDisplay
    39     virtual int MinBrightness() const {return 0;}
    40     virtual int MaxBrightness() const {return 5;}
    41     virtual int WidthInPixels() const {return KGP12xWidthInPixels;}
    42     virtual int HeightInPixels() const {return KGP12xHeightInPixels;}
    43 
    44 	};
    45 
    46 
    47 
    48 #endif