It's actually not i2c. I'm sorry but I'm just learning. I will start differently, how to assign any two pins to RX and TX? I found the software serial library but I don't know how to make RX and TX from any two pins.
For example, PA0 and PA1.
if I do it, unfortunately I don't get any data on telemetry.
Code: Select all
#include <./IBusBM.h>
#include <SoftwareSerial.h>
IBusBM IBusServo;
static const int RXPin = PA0, TXPin = PA1;
SoftwareSerial ss(RXPin, TXPin);
void setup() {
Serial.begin(115200);
ss.begin(9600);
IBusServo.addSensor(IBUS_MEAS_TYPE_S85);
}
void loop() {
ibusServo();
}
void ibusServo()
{
IBusServo.setSensorMeasurement(1,23);
delay(2000);
}
The problem is probably that I have to do
Just how to connect it to softwareserial?
I tried so but it doesn't work
Thank you in advance for your help