10/4/2023 0 Comments Hardware serial library arduino![]() The article also tells you how to configure the SERCOM modules to add additional I2C and SPI ports. Here’s an Adafruit article, (it’s for their Adafruit Feather M0, but it uses the same SAMD21G18A processor): Creating a new Serial | Using ATSAMD21 SERCOM for more SPI, I2C and Serial ports | Adafruit Learning System That leaves Sercom 2, 3 and 4 that are free to be configured how you wish. Looking at the MKR1000’s “variant.cpp” file it looks as though 3 are currently in use, that’s: ![]() The SAMD21 has 6 (0…5) flexible SERCOM modules that can be configured either as an I2C, SPI or Serial port. ![]() There isn’t a software serial library, but fortunately you can configure the SAMD21’s spare serial communciation (SERCOM) modules to obtain multiple hardware serial ports.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |