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