include "tbh/global.tbh"
include "tbh/config.tbh"
include "tbh/serial.tbh"
?>
>
WWW Server
IP:
sock.setdata(net.ip)
sock.send
'during io operations we have to disable serial port since some pins are shared
serial0_disable()
?>
File: io.html
IO mapping:
J1 -> GPIO -> io.num
#6 -> P2.0 -> 16
#4 -> P2.1 -> 17
#7 -> P2.2 -> 18
#2 -> P2.3 -> 19
#5 -> P2.4 -> 20
#3 -> P2.5 -> 21
#8 -> P2.6 -> 22
#1 -> P2.7 -> 23