Skip to content

Commit 9ddbb17

Browse files
authored
Merge pull request #860 from pimoroni/patch-bye-bye-badger
Badger2040/2040W: Remove old/incompatible examples.
2 parents 0d3fce9 + 5126263 commit 9ddbb17

Some content is hidden

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

65 files changed

+0
-7668
lines changed
Lines changed: 0 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,3 @@
11
# Badger 2040 Examples <!-- omit in toc -->
22

33
:warning: This code has been deprecated in favour of a dedicated Badger 2040 project: https://github.com/pimoroni/badger2040
4-
5-
- [Function Examples](#function-examples)
6-
- [Battery](#battery)
7-
- [Button Test](#button-test)
8-
- [LED](#led)
9-
- [Pin interrupt](#pin-interrupt)
10-
- [Application Examples](#application-examples)
11-
- [Badge](#badge)
12-
- [Checklist](#checklist)
13-
- [Clock](#clock)
14-
- [E-Book](#e-book)
15-
- [Fonts](#fonts)
16-
- [Image](#image)
17-
- [QR gen](#qr-gen)
18-
- [Launcher](#launcher)
19-
- [Conway](#conway)
20-
21-
22-
## Function Examples
23-
24-
### Battery
25-
[battery.py](battery.py)
26-
27-
An example of how to read the battery voltage and display a battery level indicator.
28-
29-
### Button Test
30-
[button_test.py](button_test.py)
31-
32-
An example of how to read Badger2040's buttons and display a unique message for each.
33-
34-
### LED
35-
[led.py](led.py)
36-
37-
Blinks Badger's LED on and off.
38-
39-
### Pin interrupt
40-
[pin_interrupt.py](pin_interrupt.py)
41-
42-
An example of drawing text and graphics and using the buttons.
43-
44-
## Application Examples
45-
46-
### Badge
47-
[badge.py](badge.py)
48-
49-
Create your own name badge! This application looks for two files on your MicroPython drive:
50-
* `badge.txt` - A text file containing 6 lines, corresponding to the 6 different pieces of text on the badge
51-
* `badge-image.bin` - A 104x128px 1-bit colour depth image to display alongside the text. You can use `examples/badger2040/image_converter/convert.py` to convert them:
52-
53-
```shell
54-
python3 convert.py --binary --resize image_file_1.png image_file_2.png image_file_3.png
55-
```
56-
57-
### Checklist
58-
[list.py](list.py)
59-
60-
A checklist application, letting you navigate through items and tick each of them off.
61-
62-
* `checklist.txt` - A text file containing the titles of items for the list.
63-
64-
### Clock
65-
[clock.py](clock.py)
66-
67-
A simple clock showing the time and date, that uses the E Ink's fast speed to update every second.
68-
69-
### E-Book
70-
[ebook.py](ebook.py)
71-
72-
A mini text file e-reader. Comes pre-loaded with an excerpt of The Wind In the Willows.
73-
74-
### Fonts
75-
[fonts.py](fonts.py)
76-
77-
A demonstration of the various fonts that can be used in your programs.
78-
79-
### Image
80-
[image.py](image.py)
81-
82-
An image gallery. Displays and lets you cycle through any images stored within the MicroPython device's `/images` directory. Images must be 296x128 pixels with 1-bit colour depth. You can use `examples/badger2040/image_converter/convert.py` to convert them:
83-
84-
```shell
85-
python3 convert.py --binary --resize image_file_1.png image_file_2.png image_file_3.png
86-
```
87-
88-
### QR gen
89-
[qrgen.py](qrgen.py)
90-
91-
Displays and lets you cycle through multiple QR codes, with configuration stored in text files within the MicroPython device's `/qrcodes` directory.
92-
93-
- `/qrcodes/qrcode.txt` - A text file containing 9 lines. The first line should be a URL which will be converted into and displayed as a QR code. Up to 8 more lines of information can be added, which will be shown as plain text to the right of the QR code.
94-
- `/qrcodes/*.txt` - additional text files can be created using the same format. All text files can be cycled through.
95-
96-
### Launcher
97-
[launcher.py](launcher.py)
98-
99-
A launcher-style application, providing a menu of other applications that can be loaded, as well as information such as battery level.
100-
101-
### Conway
102-
[conway.py](conway.py)
103-
104-
Conway's classic Game of Life, implemented on the Badger. Note: this application is *not* linked from the Launcher by default - it can be run directly using Thonny or your MicroPython editor of choice, or you can modify the Launcher to add it (you'll want to update `launchericons.png` as well)

0 commit comments

Comments
 (0)