How do I use the LTE expansion board I2C in Arduino?

Asked 2 years ago, Updated 2 years ago, 65 views

It says the following, but what should I do if I use it with Arduino?

Spresense provides one terminal for I2C connection on the main board and LTE expansion board (LTE expansion board is exclusive to PWM2 and PWM3).

spresense

2022-09-30 15:04

1 Answers

I am in charge of SPRESENSE support for Sony.

Added a Wire1 instance to the Wire library to take advantage of I2C #1 (shared pins with PWM2,3) from the Spresense Arduino environment.

Pin compatibility is as follows: I/O voltage can be switched between 3.3V/5V depending on the jumper on the expansion board side.
PWM2:I2C#1-SCL
PWM3:I2C#1-SDA

It is used in the same way as a typical Wire library.
Replace Wire.begin() with Wire1.begin().

"We have uploaded the corresponding items to the ""develop"" branch."
https://github.com/SPRESENSE/spresense-arduino-compatible/releases
SPRESENSE beta release (2021/09/11)

For instructions on how to use the Arduino package from the Development ("develop") branch, please refer here.
https://developer.sony.com/develop/spresense/doInstalling the cs/arduino_set_up_ja.html#_Pre-Release_spresense_arduino_board_package_Package

We plan to incorporate this response into the next official release and officially support it will be officially supported.

Thank you for your continued support on SPRESENSE.
SPRESENSE Support Team


2022-09-30 15:04

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.