pimoroni-pico/micropython/examples/inky_frame
thirdr cdb7b4bf2c fixed arg order bug 2024-04-11 14:02:26 +01:00
..
image_gallery Inky Frame: Include SDCard from micropython-lib. 2023-10-06 13:55:29 +01:00
inkylauncher fixed arg order bug 2024-04-11 14:02:26 +01:00
README.md Inky Frame: Include SDCard from micropython-lib. 2023-10-06 13:55:29 +01:00
button_demo.py Inky Frame: fix more typo 2023-02-28 13:10:44 +00:00
button_test.py Inky Frame: New button test, old is now button demo. 2022-10-03 14:37:02 +01:00
carbon_intensity.py tweak carbon intensity example 2023-03-15 10:39:54 +00:00
inky_frame_daily_activity.py Inky Frame: fix more typo 2023-02-28 13:10:44 +00:00
inky_frame_dithering.py Inky Frame: Add dithering example. 2023-03-02 13:09:14 +00:00
inky_frame_news.py Inky Frame: fix more typo 2023-02-28 13:10:44 +00:00
inky_frame_placekitten.py Inky Frame: fix more typo 2023-02-28 13:10:44 +00:00
inky_frame_quote_of_the_day.py Inky Frame: fix more typo 2023-02-28 13:10:44 +00:00
inky_frame_random_joke.py Inky Frame: fix more typo 2023-02-28 13:10:44 +00:00
inky_frame_rtc_demo.py add adjustment for time zone offset 2023-11-14 22:05:12 -05:00
inky_frame_xkcd_daily.py Inky Frame: fix more typo 2023-02-28 13:10:44 +00:00
led_pwm.py Inky Frame: Improve LED PWM example to test all LEDs. 2022-10-03 14:35:42 +01:00
sd_test.py add SD card example for Inky Frame 2022-07-28 18:39:12 +01:00

README.md

Pico Inky Frame MicroPython Examples

PicoGraphics

You can draw on Inky Frame using our tiny PicoGraphics display library.

Examples

The wireless examples need network_manager.py and WIFI_CONFIG.py from the common directory to be saved to your Pico W. Open up WIFI_CONFIG.py in Thonny to add your wifi details (and save it when you're done).

You'll also need to install the micropython-urllib.urequest library using Thonny's 'Tools' > 'Manage Packages' or common/lib/urllib which contains a compiled .mpy version that uses less RAM. You should place this directory in lib on your Pico W.

Button Test

button_test.py

Inky Frame's buttons (and the RTC alarm, busy signal from the screen and external trigger from the hack header) are connected to a shift register to help conserve pins, and to allow these inputs to wake the board up from sleep.

This example demonstrates a simple way of reading when a button has been pushed by reading the shift register and checking if the bit in a specific position is 0 or 1.

Carbon Intensity

carbon_intensity.py

This example connects to the Carbon Intensity API to give you a regional forecast of how your (UK) electricity is being generated and its carbon impact.

Find out more at https://carbonintensity.org.uk/

Daily Activity

inky_frame_daily_activity.py

Generate a random activity from Bored API.

Dithering

inky_frame_dithering.py

A basic example showing automatic dithering in action, as PicoGraphics tries to use Inky Frame's limited colour palette to match arbitrary colours.

/image_gallery

This photo frame example displays local images on Inky Frame and lets you switch between them with the buttons. Use image_gallery.py if your images are stored on your Pico, or image_gallery_sd.py if the images are on your SD card.

LED PWM

led_pwm.py

A basic example showing how you can control the brightness of Inky Frame's LEDs using PWM.

News

inky_frame_news.py

Display headlines from BBC News.

PlaceKitten

inky_frame_placekitten.py

Download a random (from a small subset) image from PlaceKitten.

Quote of the Day

inky_frame_quote_of_the_day.py

Load the WikiQuotes Quote of the Day and display it.

Random Joke

inky_frame_random_joke.py

Load a random joke from JokeAPI.dev and display it.

Jokes are rendered into images "offline" by our feed2image service for two reasons:

  1. Saves the Pico W having to process them
  2. JokeAPI.dev needs TLS1.3 which Pico W does not support!

For bugs/contributions or to complain about a joke, see: https://github.com/pimoroni/feed2image

RTC Demo

inky_frame_rtc_demo.py

A basic example that sets the time/date from an NTP server, syncs the Inky and Pico RTCs and and makes Inky Frame wake up on a timer.

SD Card Test

sd_test.py

This simple example shows how to read and write from the SD card on Inky Frame.

XKCD Daily

inky_frame_xkcd_daily.py

Download and display the daily webcomic from https://xkcd.com/

The webcomic is rendered "offline" by our feed2image service since xkcd.com requires TLS1.3!

For bugs/contributions see: https://github.com/pimoroni/feed2image