Webserver example that came with TinyUSB slightly modified to run on a Raspberry Pi Pico. Lets the Pico pretend to be a USB Ethernet device. Runs a webinterface at http://192.168.7.1/
 
 
Go to file
Floris Bos f64f407460 Initial version 2021-03-13 23:37:15 +01:00
arch Initial version 2021-03-13 23:37:15 +01:00
fs Initial version 2021-03-13 23:37:15 +01:00
lwip@0056522cc9 Initial version 2021-03-13 23:37:15 +01:00
pico-sdk@fc10a97c38 Initial version 2021-03-13 23:37:15 +01:00
tinyusb@11c23f88bf Initial version 2021-03-13 23:37:15 +01:00
.gitignore Initial version 2021-03-13 23:37:15 +01:00
.gitmodules Initial version 2021-03-13 23:37:15 +01:00
CMakeLists.txt Initial version 2021-03-13 23:37:15 +01:00
LICENSE Initial version 2021-03-13 23:37:15 +01:00
README.md Initial version 2021-03-13 23:37:15 +01:00
fsdata.c Initial version 2021-03-13 23:37:15 +01:00
lwipopts.h Initial version 2021-03-13 23:37:15 +01:00
regen-fsdata.sh Initial version 2021-03-13 23:37:15 +01:00
tusb_config.h Initial version 2021-03-13 23:37:15 +01:00
tusb_lwip_glue.c Initial version 2021-03-13 23:37:15 +01:00
tusb_lwip_glue.h Initial version 2021-03-13 23:37:15 +01:00
usb_descriptors.c Initial version 2021-03-13 23:37:15 +01:00
webserver.c Initial version 2021-03-13 23:37:15 +01:00

README.md

pico-webserver

Webserver example that came with TinyUSB slightly modified to run on a Raspberry Pi Pico. Lets the Pico pretend to be a USB Ethernet device. Runs a webinterface at http://192.168.7.1/

Build dependencies

On Debian:

sudo apt install git build-essential cmake gcc-arm-none-eabi

Your Linux distribution does need to provide a recent CMake (3.13+). If not, compile CMake from source first.

Build instructions

git clone --depth 1 https://github.com/maxnet/pico-webserver
cd pico-webserver
git submodule update --init --depth 1
mkdir -p build
cd build
cmake ..
make

Copy the resulting pico_webserver.uf2 file to the Pico mass storage device manually. Webserver will be available at http://192.168.7.1/

Content it is serving is in /fs If you change any files there, run ./regen-fsdata.sh

By default it shows a webpage that led you toggle the Pico's led, and allows you to switch to BOOTSEL mode.