精品导航

Controlling the display

Controlling the display

Scrolling colors

We'll use this code to have the display light up in different colors every 500 ms. 

Before we begin, add the "begin nibble variant" block:



Firstly, use the "Loop forever" block from the "Loops" block section.

Now, look for the "Fill frame with" block inside the "Display" block section, and place it inside the blue block.


We'll start with cyan, but you can choose whatever color you wish.

Now, under the "Time" block section, find the "sleep 0 ms" block and place it below the "Display" block.

Instead of 0, enter 500. This indicates that it will take exactly 500 milliseconds for the display color to change.



Now, we'll go back to the "Display" block section and change the color of the display to green.



Add another time block below this one.



Repeat this step once more.



Amazing!

Now, you can click on the Run button.

Every 500 ms, the display will begin to change colors.

Writing out some text

Now that we know how to change the background color, it's time to start writing something on that canvas. Find the "Loop forever" block, and place the "Fill frame with" block within it. 

We'll use white to fill the frame.



After the display is filled with white, you'll try to code the filled circle on it.

To do so, find this block and insert it beneath the first one.

When you click on the filled, you'll find that you have the option of making a filled or outlined circle.

You can also customize the circle's color.

We chose 30 for the radius and 35 for the x and y coordinates (where the circle will show on the screen).



After this, we'll write something on the screen.

To do that, find the "Write" block from the "Display" block section.



We'll put "CM" in yellow lettering at the coordinates x:10, y:10.

Duplicate the previous block, and do this with it:



Click on the Run button and check it out!

If you want to put the stock firmware back onto your device, you can click the Restore firmware button in the top right corner on CircuitBlocks.

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