|
1 | 1 | # Pico Inky Frame MicroPython Examples <!-- omit in toc -->
|
2 | 2 |
|
3 |
| -- [PicoGraphics](#picographics) |
4 |
| -- [Examples](#examples) |
5 |
| - - [Button Test](#button-test) |
6 |
| - - [Carbon Intensity](#carbon-intensity) |
7 |
| - - [Daily Activity](#daily-activity) |
8 |
| - - [Dithering](#dithering) |
9 |
| - - [Image Gallery](#image-gallery) |
10 |
| - - [LED PWM](#led-pwm) |
11 |
| - - [News](#news) |
12 |
| - - [PlaceKitten](#placekitten) |
13 |
| - - [Quote of the Day](#quote-of-the-day) |
14 |
| - - [Random Joke](#random-joke) |
15 |
| - - [RTC Demo](#rtc-demo) |
16 |
| - - [SD Card Test](#sd-card-test) |
17 |
| - - [XKCD Daily](#xkcd-daily) |
18 |
| - |
19 |
| -## PicoGraphics |
20 |
| - |
21 |
| -You can draw on Inky Frame using our tiny PicoGraphics display library. |
22 |
| -- [PicoGraphics MicroPython function reference](../../modules/picographics) |
23 |
| - |
24 |
| -## Examples |
25 |
| - |
26 |
| -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). |
27 |
| - |
28 |
| -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. |
29 |
| - |
30 |
| -### Button Test |
31 |
| -[button_test.py](button_test.py) |
32 |
| - |
33 |
| -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. |
34 |
| - |
35 |
| -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. |
36 |
| - |
37 |
| -### Carbon Intensity |
38 |
| -[carbon_intensity.py](carbon_intensity.py) |
39 |
| - |
40 |
| -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. |
41 |
| - |
42 |
| -Find out more at https://carbonintensity.org.uk/ |
43 |
| - |
44 |
| -### Daily Activity |
45 |
| -[inky_frame_daily_activity.py](inky_frame_daily_activity.py) |
46 |
| - |
47 |
| -Generate a random activity from Bored API. |
48 |
| - |
49 |
| -### Dithering |
50 |
| -[inky_frame_dithering.py](inky_frame_dithering.py) |
51 |
| - |
52 |
| -A basic example showing automatic dithering in action, as PicoGraphics tries to use Inky Frame's limited colour palette to match arbitrary colours. |
53 |
| - |
54 |
| -### Image Gallery |
55 |
| -[/image_gallery](../inky_frame/image_gallery) |
56 |
| - |
57 |
| -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. |
58 |
| - |
59 |
| -### LED PWM |
60 |
| -[led_pwm.py](led_pwm.py) |
61 |
| - |
62 |
| -A basic example showing how you can control the brightness of Inky Frame's LEDs using PWM. |
63 |
| - |
64 |
| -### News |
65 |
| -[inky_frame_news.py](inky_frame_news.py) |
66 |
| - |
67 |
| -Display headlines from BBC News. |
68 |
| - |
69 |
| -### PlaceKitten |
70 |
| -[inky_frame_placekitten.py](inky_frame_placekitten.py) |
71 |
| - |
72 |
| -Download a random (from a small subset) image from PlaceKitten. |
73 |
| - |
74 |
| -### Quote of the Day |
75 |
| -[inky_frame_quote_of_the_day.py](inky_frame_quote_of_the_day.py) |
76 |
| - |
77 |
| -Load the WikiQuotes Quote of the Day and display it. |
78 |
| - |
79 |
| -### Random Joke |
80 |
| -[inky_frame_random_joke.py](inky_frame_random_joke.py) |
81 |
| - |
82 |
| -Load a random joke from JokeAPI.dev and display it. |
83 |
| - |
84 |
| -Jokes are rendered into images "offline" by our feed2image service for two reasons: |
85 |
| - |
86 |
| -1. Saves the Pico W having to process them |
87 |
| -2. JokeAPI.dev needs TLS1.3 which Pico W does not support! |
88 |
| - |
89 |
| -For bugs/contributions or to complain about a joke, see: https://github.com/pimoroni/feed2image |
90 |
| - |
91 |
| -### RTC Demo |
92 |
| -[inky_frame_rtc_demo.py](inky_frame_rtc_demo.py) |
93 |
| - |
94 |
| -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. |
95 |
| - |
96 |
| -### SD Card Test |
97 |
| -[sd_test.py](sd_test.py) |
98 |
| - |
99 |
| -This simple example shows how to read and write from the SD card on Inky Frame. |
100 |
| - |
101 |
| -### XKCD Daily |
102 |
| -[inky_frame_xkcd_daily.py](inky_frame_xkcd_daily.py) |
103 |
| - |
104 |
| -Download and display the daily webcomic from https://xkcd.com/ |
105 |
| - |
106 |
| -The webcomic is rendered "offline" by our feed2image service since xkcd.com requires TLS1.3! |
107 |
| - |
108 |
| -For bugs/contributions see: https://github.com/pimoroni/feed2image |
109 |
| - |
110 |
| - |
| 3 | +Moved to: [https://github.com/pimoroni/inky-frame/tree/main/examples](https://github.com/pimoroni/inky-frame/tree/main/examples) |
0 commit comments