精品导航

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.

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