Modifications

Sauter à la navigation Sauter à la recherche
Ligne 70 : Ligne 70 :  
The board ships with the Windows 7 serial driver too! Feel free to delete that if you don't need it or have already installed it. Its ~12KiB or so.
 
The board ships with the Windows 7 serial driver too! Feel free to delete that if you don't need it or have already installed it. Its ~12KiB or so.
   −
<h3>Delete something!</h3>
+
==== Delete something! ====
 
The simplest way of freeing up space is to delete files from the drive. Perhaps there are libraries in the <code class="prettyprint">lib</code> that you aren't using anymore or test code that isn't in use.
 
The simplest way of freeing up space is to delete files from the drive. Perhaps there are libraries in the <code class="prettyprint">lib</code> that you aren't using anymore or test code that isn't in use.
   −
<h3>Use tabs</h3>
+
==== Use tabs ====
 
One unique feature of Python is that the indentation of code matters. Usually the recommendation is to indent code with four spaces for every indent. In general, we recommend that too. '''However''', one trick to storing more human-readable code is to use a single tab character for indentation. This approach uses 1/4 of the space for indentation and can be significant when we're counting bytes.
 
One unique feature of Python is that the indentation of code matters. Usually the recommendation is to indent code with four spaces for every indent. In general, we recommend that too. '''However''', one trick to storing more human-readable code is to use a single tab character for indentation. This approach uses 1/4 of the space for indentation and can be significant when we're counting bytes.
   Ligne 90 : Ligne 90 :  
Look for a volume with a name like '''CIRCUITPY''' (the default for CircuitPython).  The full path to the volume is the '''/Volumes/CIRCUITPY''' path.
 
Look for a volume with a name like '''CIRCUITPY''' (the default for CircuitPython).  The full path to the volume is the '''/Volumes/CIRCUITPY''' path.
   −
Now follow the <a href="http://apple.stackexchange.com/questions/6707/how-to-stop-os-x-from-writing-spotlight-and-trash-files-to-memory-cards-and-usb/7135#7135">steps from this question</a> to run these terminal commands that stop hidden files from being created on the board:
+
Now follow the [http://apple.stackexchange.com/questions/6707/how-to-stop-os-x-from-writing-spotlight-and-trash-files-to-memory-cards-and-usb/7135#7135 steps from this question] to run these terminal commands that stop hidden files from being created on the board:
    
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
Ligne 136 : Ligne 136 :  
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-10.png|640px}}
 
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-10.png|640px}}
   −
Oops! Another <code class="prettyprint">ImportError</code>! Libraries can depend on other libraries so copying one file over may not be enough. Looking in the bundle, there is an <code class="prettyprint">adafruit_bus_device</code> directory. In Python terms this is a package. It contains module files. Lets copy the folder over to make sure we get everything.
+
Oops! Another {{fname|ImportError}}! Libraries can depend on other libraries so copying one file over may not be enough. Looking in the bundle, there is an {{fname|adafruit_bus_device}} directory. In Python terms this is a package. It contains module files. Lets copy the folder over to make sure we get everything.
    
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-11.png|640px}}
 
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-11.png|640px}}
   −
If that fails due to out of space, <a href="https://learn.adafruit.com/adafruit-gemma-m0/installing-libraries#out-of-space">see above</a>. If not, continue on.
+
If that fails due to out of space, [https://learn.adafruit.com/adafruit-gemma-m0/installing-libraries#out-of-space see above]. If not, continue on.
   −
Lets check the serial connection again. Looks like it worked! We don't have any more <code class="prettyprint">ImportError</code>s and we can see the temperature (in Celsius) and the relative humidity.
+
Lets check the serial connection again. Looks like it worked! We don't have any more {{fname|ImportError}}s and we can see the temperature (in Celsius) and the relative humidity.
    
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-12.png|640px}}
 
{{ADFImage|FEATHER-M0-MicroPython-bibliotheque-12.png|640px}}
29 917

modifications

Menu de navigation