Skip to content

Commit 02ead42

Browse files
authored
Merge pull request #91 from jblanked/dev
Picoware - v1.7.1 This is an update to the MicroPython version that adds scaling support to the `Draw` class, a lightweight `engine` C module, unifies SD card modules, brings memory optimizations to the `CCTV` app, adds four new apps, and more! Added: - `Unit Converter`, `Drill Speed`, and `Egg Timer` apps (by @Slasher006) - `JB-News` app (news API application that requires a free API key) - Header for the `vector_mp` C module - `z` coordinate to the `vector_mp` C module and Python class - `engine` C module (lightweight replica of the previous MicroPython implementation) - Header for the `auto_complete` C module - `lcd_psram` method to the `lcd` C module (and `psram` method to the `Draw` class) that reads from a PSRAM address and writes to the LCD (this is essentially what our PSRAM framebuffer does behind the scenes) - `current_cluster_index` property to the `fat32` driver for optimizing consecutive reads (from `O(n)` to `O(1)`) - Scaling to the `lcd` C module and a `set_scaling` method to the `Draw` class - Header for the `picoware_psram` C module - `sd_mp` C module as one module for all supported devices (and removed the `picoware_sd` and `waveshare_sd` modules) Updated: - `CCTV` app to load the response into PSRAM and then split-decode into the JPEG parser (now less than 100 KB is used) - `Desktop` view order of operations - `jpeg` C module with the correct attribute assignment, 8 new attributes, and memory optimizations - `vector_mp` C module to only cast to integer when properties are accessed (avoids the `can't convert float to int` warnings), adds new methods from the game engine (`rotate_y`, `translate`, and `scale`) for 3D rendering, and initializes with a finalizer - `Matrix Rain` screensaver to use English characters only and use the `char` method correctly - `WiFi` class to kill the thread when `disconnect` is called - `response` C module with a header and to initialize with a finalizer - `FlipWorld` and `Free Roam` apps to use the global thread manager - `Python Editor` with better saving (press `Back` once, then the prompt appears to save changes) - `picoware_boards` C module as one module for all supported devices
2 parents 7c85597 + bddedeb commit 02ead42

File tree

147 files changed

+7019
-12583
lines changed

Some content is hidden

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

147 files changed

+7019
-12583
lines changed
-67 Bytes
Binary file not shown.

builds/CircuitPython/apps_unfrozen/screensavers/Matrix Rain.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def __init__(self, x: int):
1818
self.y = randint(-20, 0)
1919
self.speed = randint(1, 4)
2020
self.length = randint(8, 20)
21-
self._chars = "01アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲン"
21+
self._chars = (
22+
"01234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!?#$%@&*[]"
23+
)
2224
self.chars = [choice(self._chars) for _ in range(self.length)]
2325
self.brightness = [255 - (i * 15) for i in range(self.length)]
2426
self.pos = Vector(0, 0)
13 KB
Binary file not shown.
11.5 KB
Binary file not shown.
11.5 KB
Binary file not shown.
13 KB
Binary file not shown.
12 KB
Binary file not shown.
10 KB
Binary file not shown.
10 KB
Binary file not shown.
11 KB
Binary file not shown.

0 commit comments

Comments
 (0)