Modifications

Sauter à la navigation Sauter à la recherche
2 770 octets ajoutés ,  5 juillet 2015 à 19:54
aucun résumé de modification
Ligne 10 : Ligne 10 :  
== Le microcontroleur et WiFi ==
 
== Le microcontroleur et WiFi ==
   −
{{SPARKImage|Spark-Photon-Tour-01.jpg}}
+
{{SPARKImage|Spark-Photon-Tour-01.jpg|480px}}
    
Microcontrollers are particularly good at ''controlling things''; hence the name. They have a set of "pins" (the named connections along the edges of the board) that are called ''GPIO'' (General Purpose Input and Output) pins, or I/O pins. They can be hooked to sensors or buttons to listen to the world, or they can be hooked to lights and motors to act upon the world. These microcontroller's pins have been directly connected to the headers on the sides of the Core so you can easily access them; specifically, the pins labeled D0 to D7 and A0 to A7 are hooked directly to the microcontroller's GPIO pins.
 
Microcontrollers are particularly good at ''controlling things''; hence the name. They have a set of "pins" (the named connections along the edges of the board) that are called ''GPIO'' (General Purpose Input and Output) pins, or I/O pins. They can be hooked to sensors or buttons to listen to the world, or they can be hooked to lights and motors to act upon the world. These microcontroller's pins have been directly connected to the headers on the sides of the Core so you can easily access them; specifically, the pins labeled D0 to D7 and A0 to A7 are hooked directly to the microcontroller's GPIO pins.
Ligne 24 : Ligne 24 :  
== Les boutons ==
 
== Les boutons ==
   −
{{SPARKImage|Spark-Photon-Tour-02.jpg}}
+
{{SPARKImage|Spark-Photon-Tour-02.jpg|480px}}
    +
There are two buttons on the Photon:
 +
* the RESET button (when holding the Photon with its USB-port to the top, it's the button on the right)
 +
* the SETUP button (on the left).
 +
 +
The RESET button will put the Photon in a hard reset, effectively rebooting the microcontroller. This is a good way to restart the application that you've downloaded onto the Photon.
 +
 +
The SETUP button serves two functions after the Photon has booted:
 +
 +
* Hold down the SETUP button for three seconds to put the Photon into ''Soft-AP'' mode to connect it to your local Wi-Fi network. The LED should start flashing blue.
 +
* Hold down the SETUP button for ten seconds to clear the Photon's memory of Wi-Fi networks.
 +
 +
The SETUP button serves four functions before the Photon has booted:
 +
* Hold down the SETUP button, tap on the RESET button and wait for '''less than 3 seconds''' to enter '''User Safe Mode''' mode, where the RGB LED will be flashing Magenta. Release the SETUP button. This is the most frequently mode, because your user application will not execute. This can be useful if you have a bug in your code that is keeping you from re-flashing it over the air, or causing other hanging issues.
 +
* Hold down the SETUP button, tap on the RESET button and wait for '''3-6 seconds''' to enter '''Bootloader''' mode, where the RGB LED will be flashing Yellow. Release the SETUP button. In this mode you can reprogram the Photon over USB or JTAG. If you do this by accident, simply hit RESET button to leave Bootloader mode.
 +
* Hold down the SETUP button, tap on the RESET button and wait for '''6-10 seconds''' to enter '''Factory Reset Safe Mode''' mode, where the RGB LED will be flashing Green. Release the SETUP button. In this mode the Photon is reprogrammed with the software that was installed on the Photon in the factory (the Tinker application). The LED should turn white for three seconds and begin flashing quickly; when the LED switches to another color the Photon has been reset. This is useful if you encounter bugs with your firmware, or if you just want to get back to Tinker. Wi-Fi credentials are not erased in this mode.
 +
*Hold down the SETUP button, tap once on the RESET button and wait for '''10 seconds+''' to do a '''Factory Reset''', where the RGB LED will be flashing White. Release the SETUP button. In this mode the Photon is reprogrammed with the software that was installed on the Photon in the factory (the Tinker application). The LED should turn white for three seconds and begin flashing quickly; when the LED switches to another color the Photon has been reset. This is useful if you encounter bugs with your firmware, or if you just want to get back to Tinker. Wi-Fi credentials are also erased in this mode, so you'll have to set those up again.
    
{{Spark-Photon-Materiel-TRAILER}}
 
{{Spark-Photon-Materiel-TRAILER}}
29 917

modifications

Menu de navigation