精品导航

Let's start! Step by step!

Let's get down to business!

Before doing everything, make sure you have completed all the preceding steps: you have downloaded CircuitBlocks Agent and MicroPython, connected your device to the PC, and turned it on.

random image
random image



The first thing we'll learn is how to write text on 97电影院's display.

You only need a Display block section to write something on 97电影院's display.
It's quite simple!
Please click on the mentioned section, and choose a "fill frame with" block.
We'll use this block to choose the background color that will appear once we run this sketch.

random image



Drag and drop the selected block into the drawing area.

You can choose whichever color you like, but this time, we chose navy. 
Now, let's drag and drop the block saying "write string". This block will be used whenever you want to write anything on 97电影院's display.
If you want to write some other word instead of a string, you can simply delete the string, and write the word of your choice.
You can also choose the color of the text, and the x and y mark coordinates where the text will appear on display.

random image



We decided to write "Hello, 97电影院!" on the screen, and we put both coordinates to be 40.

random image



The last thing you need to do in this sketch is to click on a "push frame" block.

random image



We need to use this block to ensure this code will appear on display.

random image



When you press the big red Run button, the text will appear on 97电影院's screen.

Drawing different shapes on 97电影院's display

In this sketch, we added two more examples for you.

You will discover how to draw ellipses and rectangles.
We'll stay in the display block section a little bit more.
As always, it is good to start by choosing the background color. We simply duplicated the block we made for the text example to save us some time. 
You can duplicate blocks by clicking on the right button on your mouse and choosing the duplicate option from the menu.
Now, go back to the display block section and choose the "draw filled rectangle" block.

random image
random image



As you can see, you can specify whether your rectangle will be filled or outlined, which color it will be, and determine its size and coordinates.

We decided to create a white-filled rectangle with a navy background. It will be 4 (width) x 5 (height), with coordinates of x 20 and y 20.
The only thing left to do is add the "push frame" block to ensure our rectangle appears on the screen.
Here's what your code should look like:

random image



Click on the Run button, and check 97电影院's display.

Finally, let's try drawing another shape - an ellipse.
If you drew the rectangle in the previous example successfully, this will be a piece of cake for you.
Return to the display block section and select the "fill frame with" block, or simply duplicate it as we did before.
Then, in the display block section, look for the "draw filled ellipse" block and drag it into the drawing area.

random image
random image



We chose navy as the background color once more.

We did, however, choose to outline the ellipse in red this time. The size and coordinates are shown in the photo above.
As you already know, one last thing left to do is to put the "push frame" button at the end of the code to make sure it will be shown on 97电影院's display.

random image



Now, click the Run button, and check out 97电影院's display. Cool, right?

You can now change the shapes, colors, sizes, and text, but we're about to start a new chapter in which we'll learn how to code 97电影院's buttons.



友情链接:蘑菇视频入口 | 老司机视频 | 六月婷婷 | 资源导航 | 蘑菇視頻 | zhuoyemall.com | lf397.com | 蘑菇影视 | 亚洲精品 | 伊人色 | 迷妹网 | tissu-premier.com | mogus.cc | 琳琅导航 | fltou.com | dna0126.com | 在线亚洲 | 久久香蕉 | 久久视频 | 色妞 | 蘑菇传媒在线观看 | 青青伊人 | 小草社区 | 五月丁香 | 玖玖爱 | 秋霞网 | 久久久久久 | 亚洲网 | 蘑菇视频网站 | 番号网 | 宅男影院 | 在线午夜 | bt搜索 | 超碰视频 | 蘑菇视频ios | 琵琶妞 | rencai98.com | 第一福利 | 蘑菇网页版入口 | 性知音 | mogutv | 秋霞影院 | 色啪 | 蘑菇网 | 蓝色导航 | 福利盒子 | 天天综合 | btupic.com | 摩天轮社区 | gzdksw.com | tsxhyq.com | 午夜在线观看 | mogu | 4008108885.com | 福利精品 | 四虎影视 | 屁屁影院 | 综合影院 | 玖玖资源站 | 汤姆影院 | 协和影院 | 欧美午夜 | 青娱 | 最新av | 小蓝视频 | 色婷婷 | p站视频 | 蘑菇在线观看网页版 | mogu视频 | 青草草 | 无名网 | 精品免费 | 红桃视频 | hebeijiaoyuwang.com | 天堂在线 | 导航大全 | 永久地址 | 蘑菇传媒 | 樱花视频 | 草莓视 | dk99999.com | jxty00.com | 龙物视频 | sanzhucare-zhpg.com | 青草青青 | 五福影院 | 久久爱 | woqidz.com | 蜜芽视频 | 日本高清 | 永久网站 | zpzb2008.com | 蘑菇短视频入口 | 老王影院 | 看片神器 | 蘑菇app | 蘑菇tv网页版 | 扒哥黑料 | 酒色世界