sl@8: // StephaneLenclud@35: // Copyright (C) 2014-2015 Stéphane Lenclud. sl@8: // StephaneLenclud@35: // This file is part of MiniDisplay. StephaneLenclud@35: // StephaneLenclud@35: // MiniDisplay is free software: you can redistribute it and/or modify StephaneLenclud@35: // it under the terms of the GNU General Public License as published by StephaneLenclud@35: // the Free Software Foundation, either version 3 of the License, or StephaneLenclud@35: // (at your option) any later version. StephaneLenclud@35: // StephaneLenclud@35: // MiniDisplay is distributed in the hope that it will be useful, StephaneLenclud@35: // but WITHOUT ANY WARRANTY; without even the implied warranty of StephaneLenclud@35: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the StephaneLenclud@35: // GNU General Public License for more details. StephaneLenclud@35: // StephaneLenclud@35: // You should have received a copy of the GNU General Public License StephaneLenclud@35: // along with MiniDisplay. If not, see . sl@8: // sl@8: sl@8: #ifndef FUTABA_GP1212_H sl@8: #define FUTABA_GP1212_H sl@8: sl@9: #include "FutabaVfd.h" sl@9: sl@9: const int KGP12xWidthInPixels = 256; sl@9: const int KGP12xHeightInPixels = 64; sl@9: const int KGP12xPixelsPerByte = 8; sl@9: const int KGP12xFrameBufferSizeInBytes = KGP12xWidthInPixels*KGP12xHeightInPixels/KGP12xPixelsPerByte; //256*64/8=2048 sl@9: const int KGP12xFrameBufferPixelCount = KGP12xWidthInPixels*KGP12xHeightInPixels; sl@8: sl@8: sl@8: /** sl@8: Common functionality between GP1212A01A and GP1212A02A sl@8: */ sl@9: class GP1212XXXX : public FutabaGraphicDisplay sl@8: { sl@8: public: StephaneLenclud@29: //From GraphicDisplay sl@8: virtual int MinBrightness() const {return 0;} sl@8: virtual int MaxBrightness() const {return 5;} sl@9: virtual int WidthInPixels() const {return KGP12xWidthInPixels;} sl@9: virtual int HeightInPixels() const {return KGP12xHeightInPixels;} sl@9: sl@8: }; sl@8: sl@8: sl@8: sl@8: #endif