![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Hardware testing for M24SR-DISCOVERY demo PCB. as help to others
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/
Diff: M24SR-DISCOVERY_hardware/SPI_TFT_ILI9341/GraphicsDisplay.h
- Revision:
- 2:2033db202017
- Parent:
- 1:3b0bd7db2092
diff -r 3b0bd7db2092 -r 2033db202017 M24SR-DISCOVERY_hardware/SPI_TFT_ILI9341/GraphicsDisplay.h --- a/M24SR-DISCOVERY_hardware/SPI_TFT_ILI9341/GraphicsDisplay.h Thu Sep 22 11:15:01 2016 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,55 +0,0 @@ -/* mbed GraphicsDisplay Display Library Base Class - * Copyright (c) 2007-2009 sford - * Released under the MIT License: http://mbed.org/license/mit - * - * A library for providing a common base class for Graphics displays - * To port a new display, derive from this class and implement - * the constructor (setup the display), pixel (put a pixel - * at a location), width and height functions. Everything else - * (locate, printf, putc, cls, window, putp, fill, blit, blitbit) - * will come for free. You can also provide a specialised implementation - * of window and putp to speed up the results - */ - -#ifndef MBED_GRAPHICSDISPLAY_H -#define MBED_GRAPHICSDISPLAY_H - -#include "TextDisplay.h" - -class GraphicsDisplay : public TextDisplay { - -public: - - GraphicsDisplay(const char* name); - - virtual void pixel(int x, int y, int colour) = 0; - virtual int width() = 0; - virtual int height() = 0; - - virtual void window(unsigned int x,unsigned int y,unsigned int w,unsigned int h); - virtual void putp(int colour); - - virtual void cls(); - virtual void fill(int x, int y, int w, int h, int colour); - virtual void blit(int x, int y, int w, int h, const int *colour); - virtual void blitbit(int x, int y, int w, int h, const char* colour); - - virtual void character(int column, int row, int value); - virtual int columns(); - virtual int rows(); - -protected: - - // pixel location - short _x; - short _y; - - // window location - short _x1; - short _x2; - short _y1; - short _y2; - -}; - -#endif