Ligne 69 : |
Ligne 69 : |
| | | |
| === LEDs and errors === | | === LEDs and errors === |
| + | Being able to understand rapidly what's happening inside your object is essential to fix the issue. |
| + | |
| + | The best is to figure out what's happening is to use LED, blink status, heartbeat. |
| + | |
| + | By doing so, no need to open a Serial Monitor or diagnostic tool to figure out the status of the objet. |
| + | |
| [[Fichier:ENG-CANSAT-MISSION1-CAPTURE-10.png|250px]] | | [[Fichier:ENG-CANSAT-MISSION1-CAPTURE-10.png|250px]] |
| + | |
| + | The NeoPixel LED does turn GREEN when the Feather M0 switch on to normal operation (when it runs your Arduino Sketch). |
| + | |
| + | In the following sample, we do take the control over the NeoPixel LED to switch it off at the end of {{fname|setup()}} function. This means that all buses and devices are properly initialized. |
| + | |
| + | The RADIO_LED wired on the Pin 13 is used to signal radio status when emitting a message. |
| + | |
| + | {| class="wikitable" border="1" |
| + | |- |
| + | | align="center" | LED operation |
| + | | align="center" | Description |
| + | | align="center" | Fix the issue |
| + | |- style="font-size: 90%" |
| + | | align="left" | NeoPixel GREEN |
| + | | align="left" | The {{fname|setup()}} function did not complete initialization because of a crash. |
| + | | align="left" | Check the wiring of sensors. Test each sensor separately (with their tests code). If this not working, remove all sensors except the one you are testing. |
| + | |- style="font-size: 90%" |
| + | | align="left" | NeoPixel OFF |
| + | | align="left" | The {{fname|setup()}} did complete successfully. The main {{fname|loop()}} is not running. |
| + | | align="left" | ''Nothing to do here, just check the RADIO_LED for more informations''. |
| + | |- style="font-size: 90%" |
| + | | align="left" | RADIO LED = 1 pulse |
| + | | align="left" | The message has been sent successfully and got an ACK from the receiver. |
| + | | align="left" | ''Nothing to do here''. |
| + | |} |
| | | |
| === Reading and transmitting data === | | === Reading and transmitting data === |