Subscribe to a iCal feed and show events on your Raspberry Pi Pico W with a 1.14 Inch Waveshare Display
-
Get a Raspberry Pi Pico W and a Waveshare 1.14 Inch Display.
Connect them both correctly (I needed to solder the pins to the PI, otherwise, it was not possible to establish a stable connection).
-
Press the BOOTSEL button and connect it via USB. It should appear in your Explorer/Finder as USB Drive called RPI-RP2
-
Download the latest MicroPython UF2 File for Raspberry Pi Pico W from the official site
-
Copy the uf2 file to the RPI-RP2 Drive
-
The Pico should disconnect and reboot.
-
Unplug + Plug the USB Cable (without pressing BOOTSEL again)
-
Download and install Thonny for an easy Python development
-
Clone the repository into a directory of your choice
-
Open the directory with Thonny
-
Click the button at the bottom right of Thonny and select "Micropython (Raspberry Pi Pico)" (For a more detailed instruction on how to get Thonny up and running, this helped me a lot) - maybe play around a bit before proceeding.
- Copy the file
config.py.dist
toconfig.py
and modify these variables according to your needs:WIFI_SSID
WIFI_PASSWORD
WIFI_COUNTRY
ICAL_URL
- Right-click on these the directory
src
and select "Upload to /" or "Upload to Raspberry Pi Pico" to transfer all files to the Pico - Now you should open
main.py
and click the green "Play" Button in the nav-bar. - To run it without an attached computer, copy
main.py
as well to /
You should see something printed in the console and the screen should show something :)
- The EventBus is copied from seanpar203/event-bus and modified to work on micropython