2. Panel display images

From Banana Pi Wiki
Revision as of 00:31, 18 February 2019 by Sinovoip (talk | contribs) (Created page with "=Panel display image= Now that you know there's an LED matrix on the panel, you can use it to make a big story, because Python already gives you a lot of control over the disp...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Panel display image

Now that you know there's an LED matrix on the panel, you can use it to make a big story, because Python already gives you a lot of control over the display, so you can use it to create all sorts of interesting effects, and I'm sure this will be a good vehicle for artistic development.

  • Then before we get started on the project, you can see that Python already has a lot of built-in images, and if you want to display a smiley face, all you need to do is run the following code.
from microbit import *
display.show(Image.HAPPY)

Through the previous chapter, I think you should know the purpose of the first line, then the second line is refers to by the display module to display the built-in Image picture, we show the pattern of the smiling face is just part of the Image, and its name is Happy, and we will show through and placed it on the brackets, to make it, so as the display. The show (Image. Happy), began to give it a try.