Modifications

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

<h4>text()</h4>

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

Display a bmp file on the LCD screen. The bmp file should be stored in sd card. BMP format should be 24-bit color, and no bigger than 128*160. If an image dimensions exceed the size of the screen, it will be cropped.

To use this method, you must initialize the SD card by calling Robot.beginSD() in setup().

== Syntaxe ==

Robot.drawBMP(filename, x, y)

== Paramètres ==

* '''filename''': name of the bmp file to be displayed.
* '''x''': x-axis of starting position on the screen.
* '''y''': y-axis of starting position on the screen.

== Résultat ==

aucun

== Exemple ==

<nowiki>// Draws an image named "intro.bmp" from the SD card

#include <ArduinoRobot.h>

void setup(){
Robot.begin();
Robot.readyTFT();
Robot.beginSD();

//The image is pulled from sd card
Robot.drawBMP("intro.bmp",0,0);
}

void loop(){
// nothing happening here
}</nowiki>

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

{{Arduino-Robot-TRAILER}}
29 917

modifications

Menu de navigation