Difference between revisions of "2. Panel display images"

From Banana Pi Wiki
Jump to: navigation, search
(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...")
 
(Panel display image)
Line 6: Line 6:
 
  display.show(Image.HAPPY)
 
  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.
+
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. just use display.show(Image.HAPPY), began to give it a try.
 +
 
 +
[[File:Emoj.jpg]]
 +
 
 +
==The list of built-in images is as follows==

Revision as of 01:33, 18 February 2019

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. just use display.show(Image.HAPPY), began to give it a try.

Emoj.jpg

The list of built-in images is as follows