Modifications

Sauter à la navigation Sauter à la recherche
83 octets ajoutés ,  25 juillet 2015 à 15:35
Ligne 28 : Ligne 28 :  
//Adafruit_PN532 nfc(PN532_IRQ, PN532_RESET);</nowiki>
 
//Adafruit_PN532 nfc(PN532_IRQ, PN532_RESET);</nowiki>
   −
Change them so the second line is uncommented and the first line is commented. This will configure the sketch to make the library use I2C for communication with the NFC shield or breakoutThe modified code should look like:
+
Modifier le croquis de sorte que la ligne sous "with SPI connection" soit mise en commentaire ET que la ligne sous "with I2C connection" soit décommentée.
 +
 
 +
Cela conigurera le croquis pour que le croquis utilise la bibliothèque avec le bus I2C (pour le shield)Le code modifié devrait ressembler à ceci:
    
  <nowiki>// Uncomment just _one_ line below depending on how your breakout or shield
 
  <nowiki>// Uncomment just _one_ line below depending on how your breakout or shield
29 918

modifications

Menu de navigation