Modifications

Sauter à la navigation Sauter à la recherche
1 230 octets ajoutés ,  17 septembre 2013 à 09:39
Page créée avec « {{Arduino-Robot-NAV}} <h4>beginTFT()</h4> == Description == Classe RobotControl, librairie d'[[Arduino Robot-Librairie|Ardui... »
{{Arduino-Robot-NAV}}

<h4>beginTFT()</h4>

== Description ==
Classe [[Arduino Robot-Librairie#Classe_RobotControl|RobotControl]], librairie d'[[Arduino Robot-Librairie|Arduino Robot]].

Initialize the TFT module. All general TFT functions are dependent on this.

== Syntaxe ==

Robot.beginTFT()

Robot.beginTFT(premierPlan, arrierePlan)

== Paramètres ==

* premierPlan: ("foreGround" en anglais) set a universal foreground color. Default is black.
* arrierePlan: ("backGround" en anglais) set a universal background color. Default is white.

== Résultat ==

aucun

== Exemple ==

<nowiki>#include <ArduinoRobot.h>

void setup(){
Robot.begin();
Robot.beginTFT();//Initialize the TFT module
}

void loop(){
Robot.fill(255,255,255);
Robot.text("Hello World",0,0);
delay(2000);

Robot.fill(0,0,0);
Robot.text("Hello World",0,0,false);//It's necessary to erase the old text, before showing new text

Robot.fill(255,255,255);
Robot.text("I am a robot",0,0);
delay(3000);

Robot.fill(0,0,0);
Robot.text("I am a robot",0,0);
}</nowiki>

== Voir aussi ==
* [[RB-ARD-ROBOT-Func-text|text()]]
* [[RB-ARD-ROBOT-Func-drawBMP|drawBMP()]]
* [[RB-ARD-ROBOT-Func-debugPrint|debugPrint()]]

{{Arduino-Robot-TRAILER}}
29 917

modifications

Menu de navigation