Adding C# interop project and NuGet package.
2 // Copyright (C) 2014-2015 Stéphane Lenclud.
4 // This file is part of MiniDisplay.
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.
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.
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/>.
20 #ifndef FUTABA_GP1212_H
21 #define FUTABA_GP1212_H
23 #include "FutabaVfd.h"
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;
33 Common functionality between GP1212A01A and GP1212A02A
35 class GP1212XXXX : public FutabaGraphicDisplay
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;}