Hi Paul, I have no problems with just the Arduino IDE (both versions 1.8.19 and 2.0.0) and Teensyduino 1.57, so the problem only effects PlatformIO.
Just a FYI the Teensy is hooked up to a Bosch BMI088 and a couple other senors on a custom PCB.
This is the Python code that I ran when PlatformIO was working fine:-
Code:
import serial
ser = serial.Serial('/dev/ttyACM0')
for x in range(1, 100 + 1):
print(ser.readline())
Arduino Sketch:-
Code:
#include "BMI088.h"
Bmi088Accel accel(Wire,0x18);
Bmi088Gyro gyro(Wire,0x68);
void setup()
{
/* USB Serial to print data */
Serial.begin(9600);
while(!Serial) {}
/* start the sensors */
accel.begin();
gyro.begin();
}
void loop()
{
// read the sensors
accel.readSensor();
gyro.readSensor();
Serial.println(accel.getAccelX_mss());
/* delay to help with printing */
delay(20);
}
Thanks.