Hardware testing for M24SR-DISCOVERY demo PCB. as help to others

Dependencies:   mbed

Set up to use MB1138 M24SR-DISCOVERY PCB http://www.st.com/content/st_com/en/products/evaluation-tools/product-evaluation-tools/st25-nfc-rfid-eval-boards/st25-nfc-rfid-eval-boards/m24sr-discovery.html with MBED system. based on https://developer.mbed.org/users/hudakz/code/STM32F103C8T6_Hello/ code and https://developer.mbed.org/users/wim/notebook/m24sr64-nfcrfid-tag-with-i2c-interface/ Which lead me to look at Peter Drescher's work on ILI9341 LCD controller

https://developer.mbed.org/users/dreschpe/code/SPI_TFT_ILI9341/

Committer:
lloydg
Date:
Thu Sep 29 11:07:41 2016 +0000
Revision:
2:2033db202017
Parent:
M24SR-DISCOVERY_hardware/SPI_TFT_ILI9341/GraphicsDisplay.h@0:ce5a25daadce
re jig folders

Who changed what in which revision?

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