Modifications

Sauter à la navigation Sauter à la recherche
127 octets ajoutés ,  17 septembre 2013 à 11:04
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{Arduino-Robot-NAV}}
 
{{Arduino-Robot-NAV}}
   −
<h4>text()</h4>
+
<h4>drawBMP()</h4>
    
== Description ==
 
== Description ==
 
Classe [[Arduino Robot-Librairie#Classe_RobotControl|RobotControl]], librairie d'[[Arduino Robot-Librairie|Arduino Robot]].
 
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.
+
Affiche un fichier bmp (bitmap) sur l'écran LCD. Le fichier bmp doit être stocké sur une carte SD. L'image au format BMP devrait avoir des couleurs 24-bit et plus petite que 128*160. Si la dimension de l'image dépasse la taille de l'écran, cette dernière sera coupée.
   −
To use this method, you must initialize the SD card by calling Robot.beginSD() in setup().  
+
Vous devez initialiser la carte SD avec Robot.beginSD() dans la fonction setup() avat d'appeler cette fonction.  
    
== Syntaxe ==
 
== Syntaxe ==
   −
Robot.drawBMP(filename, x, y)  
+
Robot.drawBMP(nom_de_fichier, x, y)  
    
== Paramètres ==
 
== Paramètres ==
   −
* '''filename''': name of the bmp file to be displayed.
+
* '''nom_de_fichier''': nom du fichier BMP qui doit être affiché.
* '''x''': x-axis of starting position on the screen.
+
* '''x''': position de départ sur l'axe x de l'écran.
* '''y''': y-axis of starting position on the screen.  
+
* '''y''': position de départ sur l'axe y de l'écran.  
    
== Résultat ==
 
== Résultat ==
Ligne 26 : Ligne 26 :  
== Exemple ==
 
== Exemple ==
   −
  <nowiki>// Draws an image named "intro.bmp" from the SD card
+
  <nowiki>// Affiche l'image nommée "intro.bmp" depuis la carte SD
    
#include <ArduinoRobot.h>
 
#include <ArduinoRobot.h>
Ligne 35 : Ligne 35 :  
   Robot.beginSD();
 
   Robot.beginSD();
   −
   //The image is pulled from sd card
+
   //L'image est extraite depuis la carte SD
 
   Robot.drawBMP("intro.bmp",0,0);
 
   Robot.drawBMP("intro.bmp",0,0);
 
}
 
}
    
void loop(){
 
void loop(){
   // nothing happening here
+
   // rien à faire dans cette fonction
 
}</nowiki>
 
}</nowiki>
  
29 917

modifications

Menu de navigation