ARDUINO LIBRARIES FOR FEATHER M0 EXPRESS

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
jamix4
 
Posts: 6
Joined: Wed Mar 14, 2018 6:17 pm

ARDUINO LIBRARIES FOR FEATHER M0 EXPRESS

Post by jamix4 »

I have a project for datalogging with different sensors, almost all sensors use I2C or SPI to communicate. Im using the feather m0 express board.

Im using the adafruit bme280 lilbrary, RTClib, SD card library.

The bme280 library ask for the number pins for the I2C connection like this:

Code: Select all

#define BME_SCK 21
#define BME_MISO 12
#define BME_MOSI 11
#define BME_CS 20
Thats perfect, but for the other libraries they do not ask pins for the connections they use some weird command that seems to work just with arduino boards like this:

Code: Select all

#if defined(ARDUINO_ARCH_SAMD)
// for Zero, output on USB Serial console, remove line below if using programming port to program the Zero!
   #define Serial SerialUSB
#endif
or they use a chipSelect command.

How do I make the connections with these libraries with my m0 board.

User avatar
jamix4
 
Posts: 6
Joined: Wed Mar 14, 2018 6:17 pm

Re: ARDUINO LIBRARIES FOR FEATHER M0 EXPRESS

Post by jamix4 »

Please answers :(

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”