RB-ARD-ROBOT-Func-drawBMP

De MCHobby - Wiki
Révision datée du 17 septembre 2013 à 10:54 par Admin (discussion | contributions) (Page créée avec « {{Arduino-Robot-NAV}} <h4>text()</h4> == Description == Classe RobotControl, librairie d'[[Arduino Robot-Librairie|Arduino R... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche


MCHobby investit du temps et de l'argent dans la réalisation de traduction et/ou documentation. C'est un travail long et fastidieux réalisé dans l'esprit Open-Source... donc gratuit et librement accessible.
SI vous aimez nos traductions et documentations ALORS aidez nous à en produire plus en achetant vos produits chez MCHobby.

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.