精品导航

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.

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