astro-pi / python-sense-hat

Source code for Sense HAT Python library
https://sense-hat.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
505 stars 253 forks source link

Clear Screen (Clear Pixels) #99

Closed zacharyeast closed 3 years ago

zacharyeast commented 4 years ago

https://github.com/zacharyeast/Sense-Hat/blob/master/Clear%20LED's

Here is a simple but long way to clear all the pixels. Let me know if you know a shorter way!

bsimmo commented 4 years ago

sense.clear()

or sense.clear(R, G, B) and pick your colour.

as per the documentation.

On Tue, 11 Aug 2020, 8:49 pm zacharyeast, notifications@github.com wrote:

https://github.com/zacharyeast/Sense-Hat/blob/master/Clear%20LED's

Here is a simple but long way to clear all the pixels. Let me know if you know a shorter way!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/astro-pi/python-sense-hat/issues/99, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACYAXN75QJ3HIJRY3QIP4OLSAGOEJANCNFSM4P3OWIOQ .

zacharyeast commented 4 years ago

Hello,

Thanks! For some reason it seemed like sense.clear() didn't clear it every time for me. That does work perfectly now though, so not sure what happened.