Commit graph

13 commits

Author SHA1 Message Date
foamyguy
d1918e4263 remove pylint disables 2025-05-14 10:08:24 -05:00
foamyguy
6664962573 change to ruff 2025-05-14 14:20:31 +00:00
Alec Delaney
009289f782 Fix Unions to Literals 2023-06-07 10:17:23 -04:00
sdomoszlai13
3a6375d54a Implemented changes requested by @FoamyGuy. 2023-05-20 19:18:51 +02:00
sdomoszlai13
207ba7e691 Added requested type annotations to il91874.py. 2023-05-10 11:31:04 +02:00
Alec Delaney
c7a10ad873 Update version string 2022-08-16 18:09:13 -04:00
dherrada
ff074548d8 Ran pre-commit, added licenses 2021-01-14 12:40:30 -05:00
dherrada
c13f9f53c1 Ran black, updated to pylint 2.x 2020-03-16 14:41:40 -04:00
Mario Visic
7ac5141509 Reduce the CPU load when waiting for the display
In many places a `pass` instruction is used in loops to wait until we hear back
back from the display. This causes the loop to execute continuously which uses
all of the available CPU, if we instead sleep for 1ms, we don't lose much time
(less than 1ms each wait) and we dramatically reduce the load on the CPU.

Before the change (updating a 3-color 2.13" display):

```
time python3 ./update_display

real    0m19.664s
user    0m17.622s
sys     0m1.046s
```

After the change:

time python3 ./update_display

real    0m19.730s
user    0m3.563s
sys     0m0.792s1

The total time to run the script is about the same, but the CPU time has reduced dramatically.
2020-02-06 21:03:43 +11:00
Melissa LeBlanc-Williams
f78e77a935 Added version and Repo URL 2019-09-06 12:00:25 -07:00
ladyada
d37b6432cd matchy up 2.7" to new buffer assignment 2019-03-31 17:58:37 -04:00
ladyada
9010050ded linting 2019-03-31 15:53:46 -04:00
ladyada
e69578744a add 2.7" tricolor and single byte transfer support for weird chips 2019-03-31 15:46:12 -04:00