uVGA II Simple Web Browser
This project uses the uVGA II tiny vga adapter to display basic html web pages up to 10kb.
Text from html doc is parsed and basic tags are processed.
Parts used:
uVGA II board from 4D Systems
Sparkfun PRT-08534, Ethernet RJ45
PS2 adapter, PS2 keyboard
Libraries used:
modified 4DGL for uVGA: http://mbed.org/cookbook/uVGAII
HTTP Client: http://mbed.org/cookbook/HTTP-Client
PS2 Keyboard: http://mbed.org/cookbook/PS2
Pin connections:
mbed | uVGA |
---|---|
Vu | 5V |
Gnd | Gnd |
p8 | Reset |
p9 | Rx |
p10 | Tx |
mbed | PS2 |
---|---|
Vu | Power |
Gnd | Gnd |
p11 | data |
p12 | clk |
mbed | PRT-08534 |
---|---|
TD+ | 1 |
TD- | 2 |
RD+ | 7 |
RD- | 8 |
Setup:
- Declare BasicWeb object with pins connected to uVGA. - Setup PS2 keyboard and read in keys
main.cpp
#include "mbed.h" #include "BasicWeb.h" #include "PS2Keyboard.h" BasicWeb web(p9, p10, p8); // tx, rx, reset PS2Keyboard kb(p12, p11); // clk, data int main() { PS2Keyboard::keyboard_event_t evt_kb; web.browser(); // display browser page // read in keys while(1){ if(kb.processing(&evt_kb)){ if(evt_kb.length == 1){ web.newKey(evt_kb.scancode[0]); }else if(evt_kb.length == 2){ web.modKey(evt_kb.scancode[0], evt_kb.scancode[1]); } } } }
Import programuVGAII_WebBrowser
Simple web browser.
5 comments on uVGA II Simple Web Browser:
Please log in to post comments.
Hi Yaolu23.
I just see your project BasicWeb. It's so interesting. But I got some problems. 1. I don't understand why your project just only have BasicWeb.cpp and BasicWeb.h (When I imported, It's not include EthernetInterface.h, TFT_4DGL.h and HTTPClient.h) So I added those libraries. But, I still had problems. Can you help me.