Modifications

Sauter à la navigation Sauter à la recherche
Ligne 10 : Ligne 10 :     
[[Fichier:Micropython-neotrellis-wiring-01.jpg]]
 
[[Fichier:Micropython-neotrellis-wiring-01.jpg]]
 +
 +
You will have to create an instance of the I2C bus to communicates with the NeoTrellis.
 +
 +
According to the schematic here upper, you will use:
 +
 +
<syntaxhighlight lang="python">
 +
from machine import I2C, Pin
 +
 +
i2c = I2C( 1, sda=Pin.board.GP6, scl=Pin.board.GP7 )
 +
</syntaxhighlight>
32 920

modifications

Menu de navigation