hellomqttt to thingspeak mqtt and ifttt

Dependencies:   Servo MQTTPacket FP

Committer:
jasonberry
Date:
Wed May 05 14:48:01 2021 +0000
Revision:
25:ca1b1098c77f
TEST

Who changed what in which revision?

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