Modifications

Sauter à la navigation Sauter à la recherche
852 octets ajoutés ,  27 juillet 2014 à 13:18
aucun résumé de modification
Ligne 1 : Ligne 1 :  
{{LCD-USB-TTL-NAV}}
 
{{LCD-USB-TTL-NAV}}
   −
{{bloc-etroit|text=The command set is based on the Matrix Orbital specification. We added a few commands to support the RGB backlight and to adjust the size of the display (so one firmware can support 16x2 or 20x4) If you're using software that support Matrix Orbital displays, this backpack should work identically (if not, please let us know!)
+
{{bloc-etroit|text=L'ensemble des commandes est basée sur sur les spécifications ''Matrix Orbital''. Adafruit à ajouté quelques commandes pour le support du rétro-éclairage RGB et pour ajuster la taille de l'afficheur (le firmware est capable de supporter les écrans 16x2 ou 20x4). Si vous utilisez un logiciel supportant les afficheurs ''Matrix Orbital'', ce backpack devrait fonctionner à l'identique (dans le cas contraire, prenez contact avec AdaFruit par l'intermédiaire de ses Forums!)
   −
All commands start with the special character '''0xFE''' (in hex) which tells the backpack to watch for a special command next.}}
+
Toutes les commandes commencent par le caractère spécial '''0xFE''' (en Hexadécimal, valeur 255 en décimal) qui informe le backpack que le/les caractères suivants est une commande avec ses paramètres.}}
    +
== Commandes de base ==
 +
{{bloc-etroit|text=Commandes de bases:
 +
* '''Display On''' - 0xFE 0x42 - Cette commande active le rétro-éclairage. L'argument est le nombre de minutes que l'afficheur doit rester allumé. La commande est supportée mais backpack mais, par contre, il ne gère pas le time-out (de façon à ignorer ce nombre)
 +
* '''Display Off''' - 0xFE 0x46 - Désactive le rétro-éclairage.
 +
* Set Brightness - 0xFE 0x99 - fixe la luminosité du du rétro-éclairage (la couleur est fixée séparément - la configuration de la luminosité ne prends effet qu'après avoir fixé la couleur). Ce paramètre est sauvé dans l'EEPROM
 +
* '''Set & Save Brightness''' - 0xFE 0x98 - Identique à la commande ci-dessous
 +
* '''Set Contrast''' - 0xFE 0x50 - configure le contraste de l'afficheur. En générale, une valeur entre 180 et 220 fonctionne correctement. Ce paramètre est sauvé dans l'EEPROM.
 +
* '''Set & Save Contrast''' - 0xFE 0x91 - Identique à la commande ci-dessus.
 +
}}
   −
{{bloc-etroit|text=Basic commands:
+
* '''Autoscroll on''' - 0xFE 0x51 - Défilement automatique. Le défilement automatique est activé lorsqu'il y a plus de texte reçu que de place sur l'écran. Dans ce cas, le texte défile (''scroll'') automatiquement et, par conséquent, la deuxième ligne devient la première ligne, etc. Le nouveau texte est toujours affiché en bas de l'écran.
* '''Display On''' - 0xFE 0x42 - This command turns the display backlight on . The argument is how many minutes to stay on, the command is supported but we don't handle the timeout so that number is ignored
+
* '''Autoscroll off''' - 0xFE 0x52 - Désactive de défilement automatique. Quand l'afficheur reçoit du texte et s'il n'y a plus de place à l'écran alors l'afficheur recommence en haut à gauche de l'écran pour poursuivre l'affichage.
* '''Display On''' - 0xFE 0x46 - turn the display backlight off
+
* '''Clear screen''' - 0xFE 0x58 - efface le contenu de l'écran LCD
* Set Brightness - 0xFE 0x99 - set the overall brightness of the backlight (the color component is set separately - brightness setting takes effect after the color is set). Setting is saved to EEPROM
+
* '''Change startup splash screen''' - 0xFE 0x40 - Change le message au démarrage du LCD (le ''splash screen''). Après l'envoi de cette commande, vous devez envoyer 32 caractères (pour un LCD 16x2) ou jusqu'a 80 caractères (pour un LCD 20x4). Si vous ne voulez pas de ''splash screen'', écrivez une série d'espace
* '''Set & Save Brightness''' - 0xFE 0x98 - same as above
  −
* '''Set Contrast''' - 0xFE 0x50 - set the display contrast. In general, around 180-220 value is what works well. Setting is saved to EEPROM
  −
* '''Set & Save Contrast''' - 0xFE 0x91 - same as above
  −
}}
     −
* '''Autoscroll on''' - 0xFE 0x51 - this will make it so when text is received and there's no more space on the display, the text will automatically 'scroll' so the second line becomes the first line, etc. and new text is always at the bottom of the display
+
== Commandes de déplacement & modification de curseur ==
* '''Autoscroll off''' - 0xFE 0x52 - this will make it so when text is received and there's no more space on the display, the text will wrap around to start at the top of the display.
  −
* '''Clear screen''' - 0xFE 0x58 - this will clear the screen of any text
  −
* '''Change startup splash screen''' - 0xFE 0x40 - after sending this command, write up to 32 characters (for 16x2) or up to 80 characters (for 20x4) that will appear as the splash screen during startup. If you don't want a splash screen, write a bunch of spacesMoving and changing the cursor:
     −
* '''Set cursor position''' - 0xFE 0x47 - set the position of text entry cursor. Column and row numbering starts with 1 so the first position in the very top left is (1, 1)
+
* '''Set cursor position''' - 0xFE 0x47 - Déplace la position du curseur. Le numéro de colonne (''column'') et ligne (''row'') commencent à 1. La première position en haut à gauche est 1, 1
* '''Go home''' - 0xFE 0x48 - place the cursor at location (1, 1)
+
* '''Go home''' - 0xFE 0x48 - Retourné à l'emplacement d'origine. La position (1, 1)
* '''Cursor back''' - 0xFE 0x4C - move cursor back one space, if at location (1,1) it will 'wrap' to the last position.
+
* '''Cursor back''' - 0xFE 0x4C - Déplace le curseur d'un caractère en arrière. Si la position est déjà (1,1) le curseur est déplacé à la dernière position de l'écran.
* '''Cursor forward''' - 0xFE 0x4D - move cursor back one space, if at the last location location it will 'wrap' to the (1,1) position.
+
* '''Cursor forward''' - 0xFE 0x4D - Déplace le curseur d'un caractère en avant. Si le curseur est à la dernière position, il est déplacé l'emplacement d'origine (1,1).
* '''Underline cursor on''' - 0xFE 0x4A - turn on the underline cursor
+
* '''Underline cursor on''' - 0xFE 0x4A - Affiche le curseur souligné (dit ''underline'')
* '''Underline cursor off''' - 0xFE 0x4B - turn off the underline cursor
+
* '''Underline cursor off''' - 0xFE 0x4B - Désactive le curseur souligné.
* '''Block cursor on''' - 0xFE 0x53 - turn on the blinking block cursor
+
* '''Block cursor on''' - 0xFE 0x53 - Active le curseur "bloc clignotant".
* '''Block cursor off''' - 0xFE 0x54 - turn off the blinking block cursor
+
* '''Block cursor off''' - 0xFE 0x54 - Désactive le curseur "bloc clignotant".
    
RGB Backlight and LCD size
 
RGB Backlight and LCD size
29 837

modifications

Menu de navigation