2 680 octets ajoutés
, 7 mars 2025 à 14:17
{{Micropython-neotrellis-NAV}}
== Adressage I2C ==
'''Each NeoTrellis tile must have a unique address'''. You can set the addresses on the back of each panel using a little solder over the address jumpers.
The seesaw driver chip on the Trellis has a default I2C address of 0x2E. Since each device on an I2C bus must have a unique address, its important to avoid collisions or you'll get a lot of strange responses from your electronic devices!
Luckily, the seesaw has 5 address adjust pins, so that the address can be changed. Each pin changes one binary bit of the address, so you can set the address to any hex number between 0x2E and 0x4E inclusive
The panels don't have to have consecutive address #'s, they just have to be unique.
== Modifier l'adresse ===
You can change the address of very easily. Look on the back to find the three '''A0, A1, A2, A3''' et '''A4''' solder jumpers.
{{ADFImage|Micropython-neotrellis-adressage-01.png}}
Each one of these is used to hard-code 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 bit with a value of 2
* A2 sets the bit with a value of 4
* A3 sets the bit with a value of 8
* A4 sets the bit with a value of 16
The final address is '''0x2E + A4 + A3 + A2 + A1 + A0'''. So for example if '''A2'' is shorted and '''A0''' is shorted, the address is '''0x2E + 4 + 1 = 0x33''' .
== Liste d'adresses ===
<nowiki>(default) 0x2E
A0 (+1) 0x2F
A1 (+2) 0x30
A2 (+4) 0x32
A3 (+8) 0x36
A4 (+16) 0x3E
A0+A1 (+3) 0x31
A0+A2 (+5) 0x33
A0+A3 (+9) 0x37
A0+A4 (+17) 0x3F
A0+A1+A2 (+7) 0x35
A0+A1+A3 (+11) 0x39
A0+A1+A4 (+19) 0x41
A0+A1+A2+A3 (+15) 0x3d
A0+A1+A2+A4 (+23) 0x45
A0+A1+A3+A4 (+27) 0x49
A0+A1+A2+A3+A4 (+31) 0x4d
A0+A2+A3 (+13) 0x3B
A0+A2+A3+A4 (+29) 0x4b
A0+A2+A4 (+21) 0x43
A0+A3+A4 (+25) 0x47
A1+A2 (+6) 0x34
A1+A3 (+10) 0x38
A1+A4 (+18) 0x40
A1+A2+A3 (+14) 0x3c
A1+A2+A3+A4 (+30) 0x4c
A1+A3+A4 (+26) 0x48
A2+A3 (+12) 0x3a
A2+A4 (+20) 0x42
A2+A3+A4 (+28) 0x4a
A3+A4 (+24) 0x46</nowiki>
Merci à [https://llllllll.co/t/diy-monome-grid-w-adafruit-neotrellis/28106 Okyeron] des forums Adafruit pour avoir créé cette liste.
== Exemple ==
Voici un exemple pratique d'adresse de plusieurs NéoTrellis.
Les cavaliers soudés sont représentés par des rectangles verts.
{{ADFImage|Micropython-neotrellis-adressage-02.png}}
{{Micropython-neotrellis-TRAILLER}}