File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -374,6 +374,7 @@ extra_scripts = pre:rename_usb_config.py
374
374
extends = common:esp32
375
375
board = adafruit_qtpy_esp32s3_n4r2
376
376
build_flags = -DARDUINO_ADAFRUIT_QTPY_ESP32S3_N4R2 -DBOARD_HAS_PSRAM
377
+ board_build.partitions = tinyuf2-partitions-4MB-noota.csv
377
378
extra_scripts = pre:rename_usb_config.py
378
379
379
380
[env:adafruit_qtpy_esp32s3_with_psram_debug]
Original file line number Diff line number Diff line change @@ -116,14 +116,19 @@ class WipperSnapper_I2C_Driver_Out_CharLcd
116
116
for (int cur_col = 0 ; cur_col < _cols && cur_idx < message_length;
117
117
cur_col++) {
118
118
char c = message[cur_idx];
119
+ WS_DEBUG_PRINTLN (" CharLCD: Writing char: " );
120
+ WS_DEBUG_PRINT (c);
121
+ WS_DEBUG_PRINT (" | hex:0x" );
122
+ // print hex
123
+ WS_DEBUG_PRINTHEX (c);
124
+ WS_DEBUG_PRINTLN (" " );
119
125
if (c == ' \\ ' && cur_idx + 1 < message_length &&
120
- message[cur_idx + 1 ] == ' n' ) {
121
- cur_idx += 2 ; // Skip the '\n' character in the buffer
126
+ (message[cur_idx + 1 ] == ' n' || message[cur_idx + 1 ] == ' r' )) {
127
+ cur_idx += 2 ; // Skip the '\n' or '\r' character in the buffer
128
+ break ; // and move to the next row
129
+ } else if ((c == 0x0A || c == 0x0D ) && cur_idx + 1 < message_length) {
130
+ cur_idx += 1 ; // Skip the UTF-8 sequence for \n or \r
122
131
break ; // and move to the next row
123
- } else if (c == ' \\ ' && cur_idx + 1 < message_length &&
124
- message[cur_idx + 1 ] == ' r' ) {
125
- cur_idx += 2 ; // Skip the '\r' character in the buffer
126
- continue ; // and continue writing on the same row
127
132
} else if (c == 194 && cur_idx + 1 < message_length &&
128
133
message[cur_idx + 1 ] == 176 ) {
129
134
cur_idx += 2 ; // Skip the degree symbol sequence in the buffer
You can’t perform that action at this time.
0 commit comments