You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I compile and run the code below for a Teensy 4.0, many characters are dropped. A typical output is also shown below. The errors seem to be random. Adding delay(20) lines in the code seems to have no effect. When I run the same code on an Arduino Mini Pro, the output is perfect. I really, really would like to get this fixed. Any ideas?
Just as a side note, I should mention that there is a compile error when compiling for a Teensy 3.2. I don't need this but I thought someone should know.
#include <Wire.h>
#include "SparkFun_Qwiic_OpenLog_Arduino_Library.h"
OpenLog myLog; //Create instance
int ledPin = 13; //Status LED connected to digital pin 13
char message[100] = "";
void setup() {
Serial.begin(115200);
pinMode(ledPin, OUTPUT);
Wire.begin(); //Initialize I2C
myLog.begin(); //Open connection to OpenLog (no pun intended)
for (float i = 0.0; i < 9.1; i += 0.5) {
Serial.print(i); Serial.print(",");
myLog.print(i); myLog.print(",");
Serial.print(sqrt(i)); Serial.print(",");
myLog.print(sqrt(i)); myLog.print(",");
Serial.print(i / 0.99); Serial.print(",");
myLog.print(i / 0.99); myLog.print(",");
Serial.print(i * 1.1), Serial.print(",");
myLog.print(i * 1.1), myLog.print(",");
Serial.println(i);
myLog.println(i);
}
myLog.syncFile();
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(100);
digitalWrite(ledPin, LOW);
delay(1000);
}
I am having the same issue on the teensy 4.0. I read some ware that there need to be a short delay between each character not between each write. I thought the library would have done this for you but it looks like you need to do it in your code.
When I compile and run the code below for a Teensy 4.0, many characters are dropped. A typical output is also shown below. The errors seem to be random. Adding delay(20) lines in the code seems to have no effect. When I run the same code on an Arduino Mini Pro, the output is perfect. I really, really would like to get this fixed. Any ideas?
Just as a side note, I should mention that there is a compile error when compiling for a Teensy 3.2. I don't need this but I thought someone should know.
The text was updated successfully, but these errors were encountered: