Skip to content

Commit 1991fdd

Browse files
authored
Merge pull request #1032 from pimoroni/inky-patches
Patches for Inky on SDK 2.1.0 + MicroPython edge
2 parents be3e7ba + 9290243 commit 1991fdd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+10
-3805
lines changed

.github/workflows/cmake.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ jobs:
2323

2424
env:
2525
PICO_SDK_PATH: $GITHUB_WORKSPACE/pico-sdk
26-
26+
2727
steps:
28+
- name: Compiler Cache Fixup
29+
run: |
30+
mkdir -p /home/runner/.ccache
31+
2832
- name: Compiler Cache
2933
uses: actions/cache@v4
3034
with:

.github/workflows/micropython.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ jobs:
4242
board: RPI_PICO_W
4343
- name: stellar_unicorn
4444
board: RPI_PICO_W
45-
- name: inky_frame
46-
board: PICO_W_INKY
4745

4846
env:
4947
# MicroPython version will be contained in github.event.release.tag_name for releases

ci/micropython.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function micropython_clone {
2929
function micropython_build_mpy_cross {
3030
cd micropython/mpy-cross
3131
ccache --zero-stats || true
32-
CROSS_COMPILE="ccache " make
32+
CROSS_COMPILE="ccache " USER_C_MODULES= make
3333
ccache --show-stats || true
3434
cd ../../
3535
}

micropython/board/PICO_W_INKY/board.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

micropython/board/PICO_W_INKY/manifest.py

Lines changed: 0 additions & 15 deletions
This file was deleted.

micropython/board/PICO_W_INKY/mpconfigboard.cmake

Lines changed: 0 additions & 17 deletions
This file was deleted.

micropython/board/PICO_W_INKY/mpconfigboard.h

Lines changed: 0 additions & 23 deletions
This file was deleted.

micropython/board/PICO_W_INKY/pins.csv

Lines changed: 0 additions & 30 deletions
This file was deleted.
Lines changed: 1 addition & 108 deletions
Original file line numberDiff line numberDiff line change
@@ -1,110 +1,3 @@
11
# Pico Inky Frame MicroPython Examples <!-- omit in toc -->
22

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)

micropython/examples/inky_frame/button_demo.py

Lines changed: 0 additions & 86 deletions
This file was deleted.

0 commit comments

Comments
 (0)