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:

mbeduVGA
Vu5V
GndGnd
p8Reset
p9Rx
p10Tx
mbedPS2
VuPower
GndGnd
p11data
p12clk
mbedPRT-08534
TD+1
TD-2
RD+7
RD-8

/media/uploads/yaolu23/img_20130305_223214.jpg

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:

12 Mar 2014

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. /media/uploads/armuet2014/2014-03-12_230243.jpg /media/uploads/armuet2014/2014-03-12_230056.jpg

12 Mar 2014

Hi,

The networking needs mbed-rtos so that would also need to be imported. I have included all of the libraries used and you should now be able to import the complete project.

Yao Lu

13 Mar 2014

Thanks. I imported all of the libraries. But It still have one error "Undefined simple$ supper$$main(referred from retarget.o)" Can you fix it?

13 Mar 2014

It compiles fine after I tried importing it as a new project from this page. I think that error means it can't find main. Do you have main.cpp?

13 Mar 2014

Thank you very much yep, I don't have main.cpp. Cos I think this project does not need main.cpp. Let me try again.

Please log in to post comments.