Modifications

Sauter à la navigation Sauter à la recherche
Ligne 33 : Ligne 33 :  
After saving that as {{fname|code.py}} on the drive we see the status NeoPixel flashes that an error has occurred. Opening up the serial console we see that an <code class="prettyprint">ImportError</code> has occurred.
 
After saving that as {{fname|code.py}} on the drive we see the status NeoPixel flashes that an error has occurred. Opening up the serial console we see that an <code class="prettyprint">ImportError</code> has occurred.
   −
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-02.png|640px}}
+
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-02.png|480px}}
   −
It says that no module exists named <code class="prettyprint">adafruit_si7021</code>. Thats the library we need to download! Since we bought the sensor from Adafruit its likely there is a library for in [https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest the official Adafruit bundle]. If its not an Adafruit part or its missing, we can also check [https://github.com/adafruit/CircuitPython_Community_Bundle/releases/latest the Community bundle] which has libraries contributed by the community.
+
It says that no module exists named {{fname|adafruit_si7021}}. Thats the library we need to download! Since we bought the sensor from Adafruit its likely there is a library for in [https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest the official Adafruit bundle]. If its not an Adafruit part or its missing, we can also check [https://github.com/adafruit/CircuitPython_Community_Bundle/releases/latest the Community bundle] which has libraries contributed by the community.
    
{{download-box|Cliquer ici pour obtenir la dernière version du bundle d'Adafruit|https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest}}
 
{{download-box|Cliquer ici pour obtenir la dernière version du bundle d'Adafruit|https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest}}
Ligne 41 : Ligne 41 :  
Visiting the bundle release page will show us information on the latest release including a list of all the versions of the included drivers. Scrolling to the bottom of the page will reveal the downloads. We'll download the first zip file which starts with {{fname|adafruit-circuitpython-bundle}}.
 
Visiting the bundle release page will show us information on the latest release including a list of all the versions of the included drivers. Scrolling to the bottom of the page will reveal the downloads. We'll download the first zip file which starts with {{fname|adafruit-circuitpython-bundle}}.
   −
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-03.png|640px}}
+
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-03.png|480px}}
   −
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-04.png|640px}}
+
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-04.png|480px}}
    
After downloading the zip, extract its contents. This is usually done by double clicking on the zip. On Mac OSX as I'm using, it places the file in the same directory as the zip. I usually sort my Downloads by file data so the {{fname|lib}} directory that was contained in the zip ends up next to the zip file.
 
After downloading the zip, extract its contents. This is usually done by double clicking on the zip. On Mac OSX as I'm using, it places the file in the same directory as the zip. I usually sort my Downloads by file data so the {{fname|lib}} directory that was contained in the zip ends up next to the zip file.
   −
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-05.png|640px}}
+
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-05.png|480px}}
    
== Express Boards ==
 
== Express Boards ==
29 917

modifications

Menu de navigation