精品导航

Changing screen color

Now that you're accustomed to every type of block, it's time to learn how to use them!


There will be a series of small examples where you'll be able to get an understanding of how the Ringo library works.
Each example will show different functionalities. In the end, we'll just bring all of that together to create a cool app!
Let's begin!

Example #1

Let's kick things off as simple as possible.
The main component on Ringo is definitely the screen since working without one would be pretty much impossible.
What we want to do as a test is to change the screen color of our program.
The default screen color is black, or as it is known in our library, TFT_BLACK.

All colors from this library are labeled with TFT_ prefix because they are made to be used on TFT screens.

random image



The first function that is there by default is mp.display.fillScreen(TFT_BLACK).

It acts as an eraser - everything will be wiped off the screen at the beginning of the program.
Now let's move to the code generated by the blocks.
Since we want to turn our screen cyan, we are calling another fillScreen() function from the Display section, just with a different parameter.
It's only necessary to do this once, so we're placing it in the Arduino run first: a section which is equivalent to the void setup().
Placing it in the loop part would call the functions multiple times a second which is in this example a complete waste of time.
Now that we've made sure everything is set, we can run the program. It will first be compiled and then uploaded to the phone.
Ringo's screen should now be cyan. It's really as simple as that.
This is just a beginning but you can imagine that the possibilities of this screen are countless.
Colors

The full list of available colors can be found in the Display section

Restoring defaults

Now, what if we want to stop making cool things and just use our phone? Well, it takes only a couple of clicks to get everything back to normal.
Anytime you want to restore the original Ringo firmware to your phone, you can do it by pressing the 'Restore Ringo firmware' button on the main menu.
Just don't forget to save the project before exiting!

random image



Now that we've covered the basics, let's head out to something a little bit more advanced.

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