精品导航

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.

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