LPC1768 Mini-DK EasyWeb application with SPI TFT output. Started from EasyWebCR and modified for DM9161 PHY support.

Dependencies:   Mini-DK mbed

This is a very basic EasyWeb application.

No error checking is performed during initialisation.

Information

If the webpage is not reachable or the 'Webserver running' message does not appear, press the reset button on the Mini-DK and wait until the message 'Webserver running' appears.
This happens sometimes when powering up the Mini-DK because the DM9161 reset pin is NOT controlled by the LPC1768, it is directly connected to the reset button.

IP adress/mask/gateway in tcpip.h : 192.168.0.200 / 255.255.255.0 / 192.168.0.1

MAC address in ethmac.h : 6-5-4-3-2-1

Committer:
frankvnk
Date:
Fri Dec 21 15:41:54 2012 +0000
Revision:
0:636056c0b5e1
First version - rewrite from EasyWebCR

Who changed what in which revision?

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