On most boards you should begin using Wire and SPI before moving on to Wire N and SPI N. There's no better way to solve that than be either referencing the datasheet or this portion of the variant.h file. It makes it hard to use them for functions other than what is listed (such as I2C or SPI). One of my qualms with the RBA is that certain pins do not have a pin number listed in silkscreen. So then internally operations are applied to pad # 16 of the Artemis module. The number 20 is the index into the pin map array, and at that index the pad # listed is 16. So when you use "A4" in functions like "digitalWrite" it equates to the number 20. This is confirmed by the following two lines: The line defining the "A4" pin is number 48 - it tells you that pin "A4" can also be called "20" and that those pins are handled by the Apollo3 pad #16. Here is the pin map for the RedBoard Artemis: Since you show the Lidar-Lite v3HP Arduino library on the product page, do you have a fork for this library specifically? What would one have to add to a third party library to make it accept port redirects? How do you access a connection to the Apollo3 PAD 5/6 on the Nano? I noted a comment somewhere that not all third party libraries are set up to recognize port redirects. I tried the TwoWire myWire(n) solution forn of 0 through 5 with no success (just received nacks). Your documentation indicates that 17/18 can be used as SDA2/SCL2 but, apparently that would be through the Qwiic connector which I would prefer not to use and anyhow I need whatever is equivalent to the SDA/SCL of theArtemis RedBoard (connected, I believe, to Apollo3 PAD 5/6). But, when I tried to move this over to the Nano the only labeled i2c to be exposed to pins are SDA3/SC元. I have a sketch running successfully on the Artemis RedBoard communicating with a Lidar-Lite v3HP via an i2c connection to the labeled SDA/SCL pins. I am equally confused about the i2c on the Artemis Nano.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |