Modifications

Sauter à la navigation Sauter à la recherche
360 octets ajoutés ,  6 février 2013 à 12:08
aucun résumé de modification
Ligne 16 : Ligne 16 :  
You can mix-and-match matrices, as long as each one has a unique address!
 
You can mix-and-match matrices, as long as each one has a unique address!
   −
== Changing Addresses ==
+
== Modifier les addresses ==
 
You can change the address of a backpack very easily. Look on the back to find the two or three A0, A1 or A2 solder jumpers. Each one of these is used to hardcode in the address. If a jumper is shorted with solder, that sets the address. '''A0''' sets the lowest bit with a value of '''1''', '''A1''' sets the middle bit with a value of '''2''' and '''A2''' sets the high bit with a value of '''4'''.  
 
You can change the address of a backpack very easily. Look on the back to find the two or three A0, A1 or A2 solder jumpers. Each one of these is used to hardcode in the address. If a jumper is shorted with solder, that sets the address. '''A0''' sets the lowest bit with a value of '''1''', '''A1''' sets the middle bit with a value of '''2''' and '''A2''' sets the high bit with a value of '''4'''.  
   Ligne 34 : Ligne 34 :  
}}
 
}}
   −
[[Fichier:ADF-LED-BACKPACK-ARD-01.jpg]]
+
[[Fichier:ADF-LED-BACKPACK-ARD-01.jpg|300px]]
   −
[[Fichier:ADF-LED-BACKPACK-ARD-02.jpg]]
+
[[Fichier:ADF-LED-BACKPACK-ARD-02.jpg|300px]]
 +
 
 +
== Changer l'adresse dans votre code ==
 +
 
 +
Once you've adjusted the address on the backpack, you'll also want to adjust the address in the code!
 +
For the Arduino library we wrote, its simple. For example, lets say you want to have two seven-segment matrices. One is set to address 0x70 and the other is set to 0x71. Find this code in the example
    
  <nowiki>Adafruit_7segment matrix = Adafruit_7segment();
 
  <nowiki>Adafruit_7segment matrix = Adafruit_7segment();
29 917

modifications

Menu de navigation