Skip to content

Commit e9da424

Browse files
committed
updated
1 parent 4b997ee commit e9da424

File tree

2 files changed

+34
-20
lines changed

2 files changed

+34
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@
1515
/.micropico
1616
/_my_secret.py
1717

18+
uDumbDisplay.code-workspace

README.md

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ to Micro-Python / Python 3 for the [DumbDisplay Android app](https://play.google
66
For a video introduction, please watch the YouTube video: [Introducing DumbDisplay MicroPython Library --
77
with ESP32, Raspberry Pi Pico, and Raspberry Pi Zero](https://www.youtube.com/watch?v=KVU26FyXs5M)
88

9-
Although the porting is work in progress, nevertheless, a large portion of DumbDisplay functionalities have been ported.
9+
Although the porting is work in progress, nevertheless, most of the core of DumbDisplay functionalities have been ported.
1010
Hopefully, this should already be helpful for friends that develop programs for microcontroller boards in Micro-Python.
1111

12-
As hinted previously, even it is originally targeted for MicroPython, it should be useful with regular Python 3, like in Raspberry Pi environment
12+
As hinted previously, even it is originally targeted for Micro-Python, it should be useful with regular Python 3, like in Raspberry Pi environment
1313
or even with desktop / laptop.
14-
As a result, it can be an alternative way to prototype Android app driven remotely with Python 3 from desktop / laptop.
14+
Consequently, it 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.
1515

1616

17-
Enjoyz
17+
Enjoy
1818

1919
- [DumbDisplay MicroPython Library (v0.5.0)](#dumbdisplay-micropython-library-v050)
2020
- [Installation](#installation)
2121
- [Getting Started](#getting-started)
22+
- [Examples](#examples)
23+
- [DumbDisplay `io` Object](#dumbdisplay-io-object)
24+
- [Layer Feedback](#layer-feedback)
25+
- [Auto-pin Layers](#auto-pin-layers)
2226
- [Selected Demos](#selected-demos)
2327
- [Thank You!](#thank-you)
2428
- [License](#license)
@@ -78,8 +82,8 @@ The basic Python script setup is:
7882
l = LayerLedGrid(dd)
7983
```
8084
|[`demo_LayerLedGrid()` in `dd_demo.py`](dd_demo.py)|
81-
|--|
82-
|<img style="width: 200px; height: 200px;" src="screenshots/layer_ledgrid_2x2.png"></img>|
85+
|:--:|
86+
|<img style="width: 300px; height: 300px;" src="screenshots/layer_ledgrid_2x2.png"></img>|
8387
8488
- `LayerLcd` -- a TEXT based LCD with configurable number of lines of configurable number of characters
8589
<br>e.g.
@@ -90,8 +94,8 @@ The basic Python script setup is:
9094
l = LayerLcd(dd)
9195
```
9296
|[`demo_LayerLcd()` in `dd_demo.py`](dd_demo.py)|
93-
|--|
94-
|<img style="width: 200px; height: 200px;" src="screenshots/layer_lcd.png"></img>|
97+
|:--:|
98+
|<img style="width: 300px; height: 300px;" src="screenshots/layer_lcd.png"></img>|
9599
96100
- `LayerGraphical` -- a graphical LCD that you can draw to, with common drawing operations
97101
<br>e.g.
@@ -102,8 +106,8 @@ The basic Python script setup is:
102106
l = LayerGraphical(dd)
103107
```
104108
|[`demo_LayerGraphical()` in `dd_demo.py`](dd_demo.py)|
105-
|--|
106-
|<img style="width: 200px; height: 200px;" src="screenshots/layer_graphical.png"></img>|
109+
|:--:|
110+
|<img style="width: 300px; height: 300px;" src="screenshots/layer_graphical.png"></img>|
107111
108112
- `LayerSelection` -- a group / grid of TEXT based LCD mostly for showing selection choices
109113
<br>e.g.
@@ -114,8 +118,8 @@ The basic Python script setup is:
114118
l = LayerSelection(dd)
115119
```
116120
|[`demo_LayerSelection()` in `dd_demo.py`](dd_demo.py)|
117-
|--|
118-
|<img style="width: 200px; height: 200px;" src="screenshots/layer_selection_1x3.png"></img>|
121+
|:--:|
122+
|<img style="width: 300px; height: 300px;" src="screenshots/layer_selection_1x3.png"></img>|
119123
120124
- `Layer7SegmentRow` -- a single 7-segment digit, or a row of **n** 7-segments digits
121125
<br>e.g.
@@ -126,8 +130,8 @@ The basic Python script setup is:
126130
l = Layer7SegmentRow(dd)
127131
```
128132
|[`demo_Layer7SegmentRow()` in `dd_demo.py`](dd_demo.py)|
129-
|--|
130-
|<img style="width: 200px; height: 200px;" src="screenshots/layer_7segment_3d.png"></img>|
133+
|:--:|
134+
|<img style="width: 300px; height: 300px;" src="screenshots/layer_7segment_3d.png"></img>|
131135
132136
- `LayerPlotter` -- a "plotter"
133137
<br>e.g.
@@ -138,21 +142,23 @@ The basic Python script setup is:
138142
l = LayerPlotter(dd)
139143
```
140144
|[`demo_LayerPlotter()` in `dd_demo.py`](dd_demo.py)|
141-
|--|
142-
|<img style="width: 200px; height: 200px;" src="screenshots/layer_plotter.png"></img>|
145+
|:--:|
146+
|<img style="width: 300px; height: 300px;" src="screenshots/layer_plotter.png"></img>|
143147
144-
4. if you have multiple layers, you can "auto pin" them together
148+
4. if you have multiple layers, you can "auto pin" them together; otherwise, multiple layers will be stacked on top of each other
145149
<br>e.g.
146150
```
147151
AutoPin('V', AutoPin('H', l_ledgrid, l_lcd), AutoPin('H', l_selection, l_7segmentrow), l_graphical).pin(dd)
148152
```
149153
|[`demo_AutoPin()` in `dd_demo.py`](dd_demo.py)|
150-
|--|
151-
|<img style="width: 300px; height: 300px;" src="screenshots/autopin_layers.png"></img>|
154+
|:--:|
155+
|<img style="width: 400px; height: 400px;" src="screenshots/autopin_layers.png"></img>|
152156
153157
158+
# Examples
154159
155160
161+
## DumbDisplay `io` Object
156162
157163
For example (using Python networking support with `io4Inet` as `io` for the DumbDisplay object)
158164
```
@@ -183,7 +189,10 @@ dd.writeComment("DONE")
183189
```
184190
185191
186-
A simple sample that polls for feedbacks, can be like
192+
## Layer Feedback
193+
194+
195+
A simple sample that polls for feedback (say user pressing the layer) from a layer, can be like
187196
```
188197
from dumbdisplay.core import *
189198
from dumbdisplay.io_inet import *
@@ -199,6 +208,10 @@ while True:
199208
l.toggle(feedback.x, feedback.y)
200209
```
201210
211+
212+
## Auto-pin Layers
213+
214+
202215
A more complete simple sample that also shows "auto pin" as well, can be like
203216
```
204217
from dumbdisplay.core import *

0 commit comments

Comments
 (0)