
An example HTTP Server using new Ethernet Interface and localfilesystem.
Dependencies: EthernetInterface HttpServer mbed-rpc mbed-rtos mbed
Fork of giken9_HTMLServer_Sample by
Diff: main.cpp
- Revision:
- 3:f0c16cc3a4ef
- Parent:
- 0:7766f6712673
- Child:
- 5:d98cf6df5187
--- a/main.cpp Wed Mar 12 04:39:15 2014 +0000 +++ b/main.cpp Tue Dec 23 18:40:55 2014 +0000 @@ -4,13 +4,15 @@ #include "EthernetInterface.h" #include "HTTPServer.h" #include "mbed_rpc.h" -#include "TextLCD.h" +#include "C12832.h" + + +C12832 lcd(p5, p7, p6, p8, p11); EthernetInterface eth; LocalFileSystem local("local"); DigitalOut led4(LED4); //DigitalOut led1(LED1); -TextLCD lcd(p24, p26, p27, p28, p29, p30); void LcdWrite(Arguments* arg, Reply* r);void LcdWrite(Arguments* arg, Reply* r); void aliveState(void const *args) @@ -50,6 +52,7 @@ printf("Ethernet Setup OK\r\n"); FSHandler::mount("/local","/"); + //FSHandler::mount("/local/css","css/"); lcd.locate(0,0); lcd.printf("%s",eth.getIPAddress());