PicoWeb HTML/CGI Example

    `t
    <html>
    <body text=#000000 bgcolor=#c0c0c0><center>
    <h2>Frey 'n Hell Light WebLED v1.29</h2>
    <form name=LED method=GET action="/">
    <input type=radio NAME=4 VALUE=0 `004 CHECKED{}>on<br>
    <input type=radio NAME=4 VALUE=1 `004{CHECKED}>off<br>
    <input type=submit VALUE="Set LED">
    </form>
    ©1998-1999 Freyder, Helland & Lightner<br><br>
    <img src="steve.jpg">   
    <img src="davenew.jpg">  
    <img src="bruce.jpg"><br><br>
    The current temperature reading is `701ºF
    </center></body></html>

    Emit HTTP header

    Turn LED on (I/O bit 4)

    Conditional: Is I/O bit 4 on?

    Read/emit temp. (as ASCII text)

Previous slide Next slide Back to first slide View graphic version