Modifications

Sauter à la navigation Sauter à la recherche
895 octets ajoutés ,  12 octobre 2018 à 13:09
Ligne 118 : Ligne 118 :     
[[Fichier:ENG-CANSAT-RFM69HCW-TEST-22.png|640px]]
 
[[Fichier:ENG-CANSAT-RFM69HCW-TEST-22.png|640px]]
 +
 +
{{ambox-stop|text=We will have to modify the code before uploading it to the Feather M0 Express!}}
 +
 +
Indeed, the example code is provided for the '''Feather M0''' and not the '''Feather M0 Express''' so we will have to adapt the used pinout because pins 3,4 and 8 are not available on the Feather M0 Express.
 +
 +
Locate the following lines in the code:
 +
 +
<syntaxhighlight lang="c">#if defined(ARDUINO_SAMD_FEATHER_M0) // Feather M0 w/Radio
 +
  #define RFM69_CS      8
 +
  #define RFM69_INT    3
 +
  #define RFM69_RST    4
 +
  #define LED          13
 +
#endif
 +
</syntaxhighlight>
 +
 +
and change it as follow:
 +
 +
<syntaxhighlight lang="c">#if defined(ARDUINO_SAMD_FEATHER_M0)
 +
  // UPDATE for Feather M0 EXPRESS with RFM69HCW radio module
 +
  // G0 is the Radio Module interrupt pin
 +
  #define RFM69_CS      6
 +
  #define RFM69_INT    9
 +
  #define RFM69_RST    10
 +
  #define LED          13
 +
#endif
 +
</syntaxhighlight>
       
{{ENG-CANSAT-TRAILER}}
 
{{ENG-CANSAT-TRAILER}}
29 910

modifications

Menu de navigation