Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of lwip by
main.cpp
00001 #include "mbed.h" 00002 #include "HTTPServer.h" 00003 #include "HTTPRPC.h" 00004 #include "Servo.h" 00005 00006 Servo servo(p21, "servo"); 00007 DigitalOut led(LED1, "myled"); 00008 DigitalOut bigled1( p6, "bigled1"); 00009 DigitalOut bigled2( p7, "bigled2"); 00010 DigitalOut bigled3( p8, "bigled3"); 00011 DigitalOut bigled4( p9, "bigled4"); 00012 DigitalOut bigled5(p10, "bigled5"); 00013 DigitalOut bigled6(p11, "bigled6"); 00014 DigitalOut bigled7(p12, "bigled7"); 00015 HTTPServer http; 00016 00017 int main() { 00018 http.addHandler(new HTTPRPC("/rpc")); 00019 while (1) { 00020 led = !led; 00021 http.poll(); 00022 } 00023 }
Generated on Tue Jul 12 2022 16:07:06 by
1.7.2
