Modifications

Sauter à la navigation Sauter à la recherche
aucun résumé de modification
Ligne 74 : Ligne 74 :     
Now load up the Blink example
 
Now load up the Blink example
 +
 +
<syntaxhighlight lang="python">
 +
// the setup function runs once when you press reset or power the board
 +
void setup() {
 +
  // initialize digital pin 13 as an output.
 +
  pinMode(13, OUTPUT);
 +
}
 +
 +
// the loop function runs over and over again forever
 +
void loop() {
 +
  digitalWrite(13, HIGH);  // turn the LED on (HIGH is the voltage level)
 +
  delay(1000);              // wait for a second
 +
  digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
 +
  delay(1000);              // wait for a second
 +
}
 +
</syntaxhighlight>
    
And click upload! That's it, you will be able to see the LED blink rate change as you adapt the '''delay()''' calls.
 
And click upload! That's it, you will be able to see the LED blink rate change as you adapt the '''delay()''' calls.
Ligne 108 : Ligne 124 :  
Note if you're using Ubuntu 15.04 (or perhaps other more recent Linux distributions) there is an issue with the modem manager service which causes the Bluefruit LE micro to be difficult to program.  If you run into errors like "device or resource busy", "bad file descriptor", or "port is busy" when attempting to program then <a href="https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/1473246">you are hitting this issue.</a>
 
Note if you're using Ubuntu 15.04 (or perhaps other more recent Linux distributions) there is an issue with the modem manager service which causes the Bluefruit LE micro to be difficult to program.  If you run into errors like "device or resource busy", "bad file descriptor", or "port is busy" when attempting to program then <a href="https://bugs.launchpad.net/ubuntu/+source/modemmanager/+bug/1473246">you are hitting this issue.</a>
   −
The fix for this issue is to make sure Adafruit's custom udev rules are applied to your system.  One of these rules is made to configure modem manager not to touch the Feather board and will fix the programming difficulty issue.  <a href="../../../../adafruit-arduino-ide-setup/linux-setup#udev-rules">Follow the steps for installing Adafruit's udev rules on this page.</a>
+
The fix for this issue is to make sure Adafruit's custom udev rules are applied to your system.  One of these rules is made to configure modem manager not to touch the Feather board and will fix the programming difficulty issue.  [https://learn.adafruit.com/adafruit-arduino-ide-setup/linux-setup#udev-rules Follow the steps for installing Adafruit's udev rules on this page.]
    
{{FEATHER-M0-EXPRESS-TRAILER}}
 
{{FEATHER-M0-EXPRESS-TRAILER}}
29 910

modifications

Menu de navigation