Open
Description
Hi,
I've just installed the library onto my test project in PlatformIO and Visual Studio Code.
I can read and write data(!) through SC16IS752 via Serial1 on my Sparkfun ESP32-S2 Thing Plus.
But, I can't recognize the data I've sent through a USB-UART converter from the PC.
For example, I just send H\n or 48 0A in HEX
.
Code snippet I use to read the raw data;
if (i2cuart.available(SC16IS752_CHANNEL_A) > 0){
char c = i2cuart.read(SC16IS752_CHANNEL_A); // read the incoming byte:
uint8_t data = (uint8_t)c;
Serial1.println(c);
}
The output sample in different type casting;
**Decimal**
0{13}{10}0{13}{10}128{13}{10}0{13}{10}128{13}{10}0{13}{10}
**Hexadecimal**
0{0D}{0A}0{0D}{0A}128{0D}{0A}0{0D}{0A}128{0D}{0A}0{0D}{0A}
**ASCII**
0#CR#LF0#CR#LF128#CR#LF0#CR#LF128#CR#LF0#CR#LF
**Text**
0
0
128
0
128
What do I wrong here? Any input greatly appreciated.
Metadata
Metadata
Assignees
Labels
No labels