Where's my I2C?
On the SAMD21, we have the flexibility of using a wide range of pins for I2C. Some chips, like the ESP8266 can use
any
pins for I2C, using bitbangio. There's some other chips that may have fixed I2C pin.
The good news is you can use many but not
all
pins. Given the large number of SAMD boards we have, its impossible
to guarantee anything other than the labeled 'SDA' and 'SCL'. So, if you want some other setup, or multiple I2C
interfaces, how will you find those pins? Easy! We've written a handy script.
All you need to do is copy this file to your board, rename it code.py, connect to the serial console and check out the
output! The results print out a nice handy list of SCL and SDA pin pairs that you can use.
These are the results from an ItsyBitsy M0 Express. Your output may vary and it might be
very
long. For more details
about I2C and SERCOMs,
check out our detailed guide here
(https://adafru.it/Ben)
.
© Adafruit Industries
https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51
Page 158 of 183
Содержание Feather M4 Express
Страница 1: ...Adafruit Feather M4 Express Created by lady ada Last updated on 2019 03 04 10 41 14 PM UTC...
Страница 5: ...Adafruit Industries https learn adafruit com adafruit feather m4 express atsamd51 Page 10 of 183...
Страница 58: ...Adafruit Industries https learn adafruit com adafruit feather m4 express atsamd51 Page 63 of 183...
Страница 164: ...Adafruit Industries https learn adafruit com adafruit feather m4 express atsamd51 Page 169 of 183...
Страница 168: ...Adafruit Industries https learn adafruit com adafruit feather m4 express atsamd51 Page 173 of 183...