AnalogInputPoti12_5a_Spannung_Strom

Committer:
martwerl
Date:
Thu Nov 15 17:25:27 2018 +0000
Revision:
0:54a8c9ae5155
AnalogInputPoti12_5a_Spannung_Strom

Who changed what in which revision?

UserRevisionLine numberNew contents of line
martwerl 0:54a8c9ae5155 1 /* mbed GraphicsDisplay Display Library Base Class
martwerl 0:54a8c9ae5155 2 * Copyright (c) 2007-2009 sford
martwerl 0:54a8c9ae5155 3 * Released under the MIT License: http://mbed.org/license/mit
martwerl 0:54a8c9ae5155 4 *
martwerl 0:54a8c9ae5155 5 * A library for providing a common base class for Graphics displays
martwerl 0:54a8c9ae5155 6 * To port a new display, derive from this class and implement
martwerl 0:54a8c9ae5155 7 * the constructor (setup the display), pixel (put a pixel
martwerl 0:54a8c9ae5155 8 * at a location), width and height functions. Everything else
martwerl 0:54a8c9ae5155 9 * (locate, printf, putc, cls, window, putp, fill, blit, blitbit)
martwerl 0:54a8c9ae5155 10 * will come for free. You can also provide a specialised implementation
martwerl 0:54a8c9ae5155 11 * of window and putp to speed up the results
martwerl 0:54a8c9ae5155 12 */
martwerl 0:54a8c9ae5155 13
martwerl 0:54a8c9ae5155 14 #ifndef MBED_GRAPHICSDISPLAY_H
martwerl 0:54a8c9ae5155 15 #define MBED_GRAPHICSDISPLAY_H
martwerl 0:54a8c9ae5155 16
martwerl 0:54a8c9ae5155 17 #include "TextDisplay.h"
martwerl 0:54a8c9ae5155 18
martwerl 0:54a8c9ae5155 19 class GraphicsDisplay : public TextDisplay {
martwerl 0:54a8c9ae5155 20
martwerl 0:54a8c9ae5155 21 public:
martwerl 0:54a8c9ae5155 22
martwerl 0:54a8c9ae5155 23 GraphicsDisplay(const char* name);
martwerl 0:54a8c9ae5155 24
martwerl 0:54a8c9ae5155 25 virtual void pixel(int x, int y, int colour) = 0;
martwerl 0:54a8c9ae5155 26 virtual int width() = 0;
martwerl 0:54a8c9ae5155 27 virtual int height() = 0;
martwerl 0:54a8c9ae5155 28
martwerl 0:54a8c9ae5155 29 virtual void window(int x, int y, int w, int h);
martwerl 0:54a8c9ae5155 30 virtual void putp(int colour);
martwerl 0:54a8c9ae5155 31
martwerl 0:54a8c9ae5155 32 virtual void cls();
martwerl 0:54a8c9ae5155 33 virtual void fill(int x, int y, int w, int h, int colour);
martwerl 0:54a8c9ae5155 34 virtual void blit(int x, int y, int w, int h, const int *colour);
martwerl 0:54a8c9ae5155 35 virtual void blitbit(int x, int y, int w, int h, const char* colour);
martwerl 0:54a8c9ae5155 36
martwerl 0:54a8c9ae5155 37 virtual void character(int column, int row, int value);
martwerl 0:54a8c9ae5155 38 virtual int columns();
martwerl 0:54a8c9ae5155 39 virtual int rows();
martwerl 0:54a8c9ae5155 40
martwerl 0:54a8c9ae5155 41 protected:
martwerl 0:54a8c9ae5155 42
martwerl 0:54a8c9ae5155 43 // pixel location
martwerl 0:54a8c9ae5155 44 short _x;
martwerl 0:54a8c9ae5155 45 short _y;
martwerl 0:54a8c9ae5155 46
martwerl 0:54a8c9ae5155 47 // window location
martwerl 0:54a8c9ae5155 48 short _x1;
martwerl 0:54a8c9ae5155 49 short _x2;
martwerl 0:54a8c9ae5155 50 short _y1;
martwerl 0:54a8c9ae5155 51 short _y2;
martwerl 0:54a8c9ae5155 52
martwerl 0:54a8c9ae5155 53 };
martwerl 0:54a8c9ae5155 54
martwerl 0:54a8c9ae5155 55 #endif