RB-ARD-ROBOT-Func-drawBMP
text()
Description
Classe RobotControl, librairie d'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
// 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 }
Voir aussi
Source: Arduino Robot, getting started with the Arduino Robot, the Robot's library pages. Crédit: Arduino.cc, licence Creative Common Attribution ShareAlike.
Toute référence, mention ou extrait de cette traduction doit être explicitement accompagné du texte suivant : « Traduction par MCHobby (www.MCHobby.be) - Vente de kit et composants » avec un lien vers la source (donc cette page) et ce quelque soit le média utilisé.
L'utilisation commercial de la traduction (texte) et/ou réalisation, même partielle, pourrait être soumis à redevance. Dans tous les cas de figures, vous devez également obtenir l'accord du(des) détenteur initial des droits. Celui de MC Hobby s'arrêtant au travail de traduction proprement dit.