Commit graph

49 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
foamyguy
148c744668 Import Direction at runtime 2023-05-22 15:55:54 -05:00
sdomoszlai13
3a6375d54a Implemented changes requested by @FoamyGuy. 2023-05-20 19:18:51 +02:00
sdomoszlai13
95758b357f Added changes requested by @FoamyGuy. 2023-05-18 21:13:17 +02:00
sdomoszlai13
e4f301f833 Added requested type annotations. 2023-05-09 23:59:28 +02:00
Liz
3c1bc12358 black 2023-04-07 12:42:44 -04:00
lady ada
c225150234 make optimizations in case we dont have to toggle CS pin on each write.
also add examples for u2if versions of feather epd
2023-04-06 23:58:53 -04:00
Alec Delaney
c7a10ad873 Update version string 2022-08-16 18:09:13 -04:00
Linar Yusupov
f0d6f5f9cb fix candidate for an issue that font size argument is not passed to the framebuf layer 2021-03-29 10:16:14 +03:00
dherrada
ff074548d8 Ran pre-commit, added licenses 2021-01-14 12:40:30 -05:00
Melissa LeBlanc-Williams
732e1a0d7e Added grayscale image support just because 2020-08-18 13:51:29 -07:00
dherrada
c13f9f53c1 Ran black, updated to pylint 2.x 2020-03-16 14:41:40 -04:00
Mario Visic
7b064da754 Call sleep() on time 2020-02-06 21:35:46 +11: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
ladyada
b202863f31 lint 2019-09-29 01:38:04 -04:00
ladyada
432dacf019 fix image(), working now. blinka demo improvements 2019-09-28 00:12:52 -04:00
ladyada
62676fef5b dont forget set frequency (as we dont use busdevice) 2019-09-27 23:22:43 -04:00
Melissa LeBlanc-Williams
f78e77a935 Added version and Repo URL 2019-09-06 12:00:25 -07:00
mrmcwethy
a6f24ebd24 fixed issue #22 and #21 2019-05-29 16:44:08 -07:00
mrmcwethy
b900b300ea Fix for issue #19 OverflowError: value must fit in 1 byte(s) 2019-05-19 15:55:59 -07:00
ladyada
df3b5e049b initial add of SSD1308 2019-03-31 20:25:17 -04:00
ladyada
b04d3e7ab5 lint 2019-03-31 18:16:31 -04:00
ladyada
11c3179f08 allow rearranging of buffers (for flex displays) 2019-03-31 17:56:59 -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
ladyada
fe0cb4d9f4 linty!@ 2019-03-31 01:18:08 -04:00
ladyada
7fd35d081a big refactor but now works with ram or sram 2019-03-30 22:31:15 -04:00
ladyada
642cb0dada width/height change with rotation 2019-01-06 15:08:38 -05:00
ladyada
0728206b49 fix none-8-bit boundary sizes 2019-01-06 14:35:24 -05:00
ladyada
4f9b90c4c0 add const underscores and rotation 2019-01-06 11:45:12 -05:00
ladyada
f7c350111d begin framebuffification 2019-01-05 21:43:42 -05:00
ladyada
346a9d47ff use mem buffer if no SRAM pin 2019-01-05 20:51:55 -05:00
ladyada
9c51956625 charge arg order/kwarg, make busy/reset optional 2019-01-01 17:07:51 -05:00
ladyada
bdda66890a get rid of clear_display/clear_buffer and replace with just fill() 2019-01-01 16:27:16 -05:00
dean
e54c825bbf DM: to my friend pylint 2018-08-21 17:56:47 -04:00
dean
cf15aa7da1 DM: working blinka example 2018-08-21 17:48:19 -04:00
Kattni Rembor
316177f47b linting 2018-08-04 12:20:15 -04:00
dean
2055e59ed8 DM: fix for pylint 2018-07-18 15:21:51 -04:00
dean
f0b49091ee DM: add back in soft framebuf stuff 2018-07-17 12:33:56 -04:00
dean
ece830385d DM: update docstrings 2018-07-16 17:19:49 -04:00
Kattni
12a4167e68
corrected pylint: enable location 2018-07-16 12:23:03 -04:00
dean
d49b0721b3 DM: disable too many args for pylint 2018-07-12 17:38:56 -04:00
dean
49898a6450 DM: remove soft framebuf stuff 2018-07-12 17:17:17 -04:00
dean
59bfc3f68f DM: fix some pylint stuff 2018-07-12 17:03:30 -04:00
dean
b0727ae67f DM: fix pylint stuff 2018-07-12 16:38:49 -04:00
dean
01d7cfb046 DM: make pylint happy 2018-07-12 16:28:01 -04:00
Kattni Rembor
c8f49c673d Changed case of directory 2018-07-12 15:38:32 -04:00
Renamed from Adafruit_EPD/epd.py (Browse further)