Skip to content

Commit d150f8d

Browse files
committed
pydisplay: Packaging changes.
Signed-off-by: Brad Barnett <[email protected]>
1 parent 9f3e443 commit d150f8d

File tree

16 files changed

+19
-862
lines changed

16 files changed

+19
-862
lines changed

micropython/pydisplay/displaybuf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ micropython -i path.py
6060

6161
On microcontrollers, either add the following to your `boot.py` (MicroPython) or `code.py` (CircuitPython), or simply import it at the REPL before importing your desired app:
6262
```
63-
import path
63+
import lib.path
6464
```
6565

6666
The [examples](examples) directory will be on the system path, so to run an app from it, you just need to type:

micropython/pydisplay/displaysys/displaysys-pgdisplay/displaysys/pgdisplay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
pass
1616

1717

18-
def poll():
18+
def poll() -> Optional[pg.event.Event]:
1919
"""
2020
Polls for an event and returns the event type and data.
2121

micropython/pydisplay/displaysys/displaysys/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ micropython -i path.py
6060

6161
On microcontrollers, either add the following to your `boot.py` (MicroPython) or `code.py` (CircuitPython), or simply import it at the REPL before importing your desired app:
6262
```
63-
import path
63+
import lib.path
6464
```
6565

6666
The [examples](examples) directory will be on the system path, so to run an app from it, you just need to type:

micropython/pydisplay/displaysys/displaysys/displaysys/README.md

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

micropython/pydisplay/displaysys/displaysys/examples/displaysys_block_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def main():
4646
)
4747
count += 1
4848
if count % 2000 == 0:
49-
print("blocks/sec:", count / (time.time() - start_time))
49+
print(f"\rblocks/sec: {(count / (time.time() - start_time)):5.2f}", end="")
5050

5151

5252
main()

micropython/pydisplay/displaysys/displaysys/examples/displaysys_fill_rect_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def main():
3434
)
3535
count += 1
3636
if count % 1000 == 0:
37-
print("blocks/sec:", count / (time.time() - start_time))
37+
print(f"\rblocks/sec: {(count / (time.time() - start_time)):5.2f}", end="")
3838

3939

4040
main()

micropython/pydisplay/eventsys/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ micropython -i path.py
6060

6161
On microcontrollers, either add the following to your `boot.py` (MicroPython) or `code.py` (CircuitPython), or simply import it at the REPL before importing your desired app:
6262
```
63-
import path
63+
import lib.path
6464
```
6565

6666
The [examples](examples) directory will be on the system path, so to run an app from it, you just need to type:

0 commit comments

Comments
 (0)