You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+84-34Lines changed: 84 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,13 +7,11 @@ to MicroPython / Python 3 for the [DumbDisplay Android app](https://play.google.
7
7
For a video introduction, please watch the YouTube video: [Introducing DumbDisplay MicroPython Library --
8
8
with ESP32, Raspberry Pi Pico, and Raspberry Pi Zero](https://www.youtube.com/watch?v=KVU26FyXs5M)
9
9
10
-
Although the porting is work in progress, nevertheless, most of the core of DumbDisplay functionalities have been ported.
10
+
Although the porting is still work-in-progress, a large portion of the core of DumbDisplay functionalities have been ported.
11
11
Hopefully, this should already be helpful for friends that develop programs for microcontroller boards in MicroPython.
12
12
13
-
As hinted previously, even DumbDisplay MicroPython Library is originally targeted for MicroPython, it should be useable with regular Python 3, like in Raspberry Pi environment
14
-
or even with desktop / laptop.
15
-
16
-
Consequently, DumbDisplay MicroPython Library might be an alternative way to prototype simple Android app driven remotely with Python 3 from desktop / laptop, say for displaying experiment result data and getting simple interaction with the user.
13
+
As hinted previously, even DumbDisplay MicroPython Library is originally targeted for MicroPython, it should be useable with regular Python 3, like in Raspberry Pi environment or even with desktop / laptop.
14
+
Consequently, DumbDisplay MicroPython Library might be an alternative way to prototype simple Android app driven remotely with Python 3 from desktop / laptop, say for displaying experiment result data and getting simple interactions from the user.
17
15
18
16
19
17
Enjoy
@@ -25,7 +23,7 @@ Enjoy
25
23
-[IO Mechanism](#io-mechanism)
26
24
-[Layers](#layers)
27
25
-[Auto-Pinning of Layers](#auto-pinning-of-layers)
Certain user interaction, like pressing, with the layers (the UI) can trigger feedback to the corresponding layer objects
198
242
@@ -205,7 +249,7 @@ or to enable feedback with auto flashing (UI feedback) of the layer by provide o
205
249
l.enable_feedback("fl")
206
250
```
207
251
208
-
There are two ways feedback of the layer can be received -- polling or callback
252
+
There are two ways feedback of a layer can be received -- polling or callback
209
253
210
254
### Poll for Feedback
211
255
@@ -237,19 +281,25 @@ The parameters passed to the callback `lambda`:
237
281
- `type`: the type of feedback (as mentioned above)
238
282
- `x`, `y`: the "coordinates" of the feedback (as mentioned above)
239
283
284
+
***Important*** note: Since DumbDisplay is "cooperative", you should give "time-slices" for DumbDisplay to process feedback signals from the Android app, like:
285
+
```
286
+
while True:
287
+
dd.timeslice()
288
+
```
289
+
240
290
Please take [`demo_Feedback_callback()` in `dd_demo.py`](dd_demo.py) as an example.
241
291
242
292
243
293
# Selected Demos
244
294
245
-
Here is a few Raspberry Pi Pico PIO demos that might interest you
295
+
Here are two Raspberry Pi Pico PIO demos
246
296
247
297
|[Respberry Pi Pico W Generating Tones With Programmable I/O (PIO) Using MicroPython](https://www.instructables.com/Respberry-Pi-Pico-W-Generating-Tones-With-Programm/)|[Respberry Pi Pico W NeoPixels Experiments With Programmable I/O (PIO) Using MicroPython](https://www.instructables.com/Respberry-Pi-Pico-W-NeoPixels-Experiments-With-Pro/)|
[`PyTorchIntroductoryExperiments`](https://github.com/trevorwslee/PyTorchIntroductoryExperiments) shows two regular Python 3 demos that might interest you
302
+
[`PyTorchIntroductoryExperiments`](https://github.com/trevorwslee/PyTorchIntroductoryExperiments) shows two regular Python 3 demos
0 commit comments