Commit graph

127 commits

Author SHA1 Message Date
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
sommersoft
dfcdd62ee2 update pylint examples directive
Signed-off-by: sommersoft <sommersoft@gmail.com>
2020-01-14 17:15:23 -06:00
Limor "Ladyada" Fried
9d3b4bff13
Merge pull request #34 from adafruit/dherrada-patch-1
Moved repository from Travis to GitHub Actions
2020-01-04 21:50:56 -05:00
dherrada
14a086eadb Moved repository from Travis to GitHub Actions 2020-01-04 14:17:32 -05:00
Melissa LeBlanc-Williams
92323d3384
Merge pull request #33 from makermelissa/master
Added EPD Pillow Shapes and Text demo
2019-10-22 10:35:12 -07:00
Melissa LeBlanc-Williams
1b43ad5ccc Added EPD Pillow Shapes and Text demo 2019-10-22 10:23:33 -07:00
Melissa LeBlanc-Williams
81caa6374f
Merge pull request #32 from makermelissa/master
Added Pillow Image drawing example
2019-10-21 17:23:27 -07:00
Melissa LeBlanc-Williams
0846fe003d Removed ImageDraw code which wasn't necessary 2019-10-21 16:49:02 -07:00
Kattni
8d6209bd55
Merge pull request #29 from adafruit/dherrada-patch-1
Removed building locally section from README, replaced with documenta…
2019-10-21 19:45:18 -04:00
Melissa LeBlanc-Williams
cc338c7b3c Simplified code a bit 2019-10-21 16:39:39 -07:00
Melissa LeBlanc-Williams
7040e6b904 Removed unused import 2019-10-21 15:38:52 -07:00
Melissa LeBlanc-Williams
739ed0b684 Added Pillow Image drawing example 2019-10-21 15:34:29 -07:00
Melissa LeBlanc-Williams
cdcd1a5e9a
Merge pull request #31 from makermelissa/master
Added Framebuf to requirements
2019-10-20 11:18:38 -07:00
Melissa LeBlanc-Williams
de931a6cdd Added Framebuf to requirements 2019-10-20 11:02:15 -07:00
dherrada
5a1474cbab
Added PyPi installation instructions 2019-10-18 21:37:20 -04:00
dherrada
16fc85386f
Removed building locally section from README, replaced with documentation section 2019-10-17 18:33:14 -04:00
Limor "Ladyada" Fried
ce9dfde1ec
Merge pull request #28 from ladyada/master
add two more eink displays, fix linux support
2019-10-08 16:23:23 -04:00
Limor "Ladyada" Fried
bd4737aa52
Merge pull request #1 from dherrada/master
Fixed some syntax in order to get the examples pylint to pass
2019-10-08 16:20:29 -04:00
dherrada
037480b30d Fixed some syntax in order to get the examples pylint to pass 2019-10-08 10:47:17 -04:00
ladyada
3761c4dad7 test switches 2019-09-29 14:31:13 -04:00
ladyada
7d08a07fa3 bonnet demo 2019-09-29 14:27:02 -04:00
ladyada
8022b3427e fix stride for rotation of odd-pixel-counts 2019-09-29 12:29:29 -04:00
ladyada
3f9bc2665a remove another dup 2019-09-29 01:51:44 -04:00
ladyada
2d2c841773 fix dup register and docname 2019-09-29 01:49:51 -04:00
ladyada
5ce4a71d6a lint3 2019-09-29 01:43:59 -04:00
ladyada
14ed40f901 lintlint 2019-09-29 01:41:06 -04:00
ladyada
b202863f31 lint 2019-09-29 01:38:04 -04:00
ladyada
f557beff1a run correct lut, checked with both 2.13"s 2019-09-29 01:32:52 -04:00
ladyada
058a11e7bf add new displays 2019-09-28 14:13:37 -04:00
ladyada
be57b80782 fix orientation. needs lutwork 2019-09-28 14:09:53 -04:00
ladyada
da1a8ef8d9 rough beginnings of an ssd1375b driver 2019-09-28 13:57:52 -04:00
ladyada
24a7c80756 fix display 2019-09-28 03:42:17 -04:00
ladyada
3090292ce7 start of ssd1681 driver 2019-09-28 03:14:28 -04:00
ladyada
432dacf019 fix image(), working now. blinka demo improvements 2019-09-28 00:12:52 -04:00
ladyada
30434cc6c3 add missing displays 2019-09-27 23:41:26 -04:00
ladyada
039f94aeec fix simpletest 2.13" mono 2019-09-27 23:39:42 -04:00
sommersoft
6da61f7ce1
Merge pull request #27 from ladyada/master
dont forget set frequency (as we dont use busdevice)
2019-09-27 22:35:45 -05:00
ladyada
62676fef5b dont forget set frequency (as we dont use busdevice) 2019-09-27 23:22:43 -04:00
Limor "Ladyada" Fried
82ce2b28d3
Merge pull request #26 from makermelissa/master
Added version and Repo URL
2019-09-06 15:33:43 -04:00
Melissa LeBlanc-Williams
f78e77a935 Added version and Repo URL 2019-09-06 12:00:25 -07:00
Limor "Ladyada" Fried
5385963bff
Merge pull request #23 from mrmcwethy/issue22t2
fixed issue #22 and #21
2019-06-13 13:29:39 -04:00
mrmcwethy
a6f24ebd24 fixed issue #22 and #21 2019-05-29 16:44:08 -07:00
Melissa LeBlanc-Williams
ecdede6041
Merge pull request #20 from mrmcwethy/issue19
Fix for issue #19 OverflowError:  value must fit in 1 byte(s)
2019-05-19 18:34:00 -07:00
mrmcwethy
b900b300ea Fix for issue #19 OverflowError: value must fit in 1 byte(s) 2019-05-19 15:55:59 -07:00
Carter Nelson
efdd7d360d
Merge pull request #18 from kattni/readme-update
Update usage example in README
2019-04-29 15:54:56 -07:00
Kattni Rembor
2eb545c119 Update usage example in README 2019-04-24 11:32:46 -04:00
Dan Halbert
def87f05f2
Merge pull request #15 from kattni/readme-update
Add font5x8.bin dependency
2019-04-23 13:48:59 -04:00
Kattni Rembor
906c11d134 Add font5x8.bin dependency 2019-04-23 13:43:59 -04:00
Limor "Ladyada" Fried
c72a7bbf10
Merge pull request #13 from kattni/add-213-mono
Adding 2.13 mono to example
2019-04-12 18:08:06 -04:00