micro:bit display pixel brightness #7222
Replies: 1 comment
-
Posted at 2018-03-27 by @gfwilliams I don't believe so, no - not without some firmware changes. Did you want to change the brightness of individual pixels, or the whole screen? Posted at 2018-03-27 by Frenchfaso Ideally of individual pixels. Posted at 2018-03-28 by @gfwilliams Thanks! Yes, you could use a sort of PWM - your issue is that under the hood the micro:bit is 'scanning' the display - in 3 parts at 200Hz - so if you're not careful when you try your PWM you could end up with some parts looking brighter than others if the timer used for changing what is shown and the one used for doing the PWM go in and out of phase. The easiest thing would be to try calling Otherwise it'd require some firmware mods and I wonder how you'd expose the functionality. Perhaps a second argument to Posted at 2018-03-29 by Frenchfaso Hello Gordon,
and this one:
I thought the last one would be a little bit faster (by removing setTimeout) but nothing changed. As for a firmware mod, this would be awesome of course!
this way we could manage images with 16 levels of gray/brightness directly. The micropython firmware supports 9 levels of brightness (0 is off) and visually it works pretty well, the other official firmware (the js/typescript thing) "supports" 255 levels of brightness, but this really does not work, and all kind of weird things happen (probably the out-of-phase problems you mentioned?) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-03-27 by Frenchfaso
Hello Gordon,
is it possible to set the brightness on the micro:bit pixels like with micropython?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions