I use bluetooth (works like serial monitor). Let me say i send a text to my hc-05 (same as sending to serial monitor) My current code is displaying text from serial monitor/HC-05 TO LCD
#include <LiquidCrystal.h>
LiquidCrystal lcd(4, 6, 10, 11, 12, 13);
String readString;
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
}
void loop() {
while(Serial.available()){
delay(50);
char c=Serial.read();
readString+=c;
}
if(readString.length()>0){
Serial.println(readString);
lcd.clear();
lcd.print(readString);
readString="";
}
}
from serial monitor i type `a,b,c,d`
now my goal is to just get the a and display in lcd
or
in other words i want to get the value of a b c d in the text that is CSV to list or array and get value for index 1,2,3,4
OR
split string by delimiter
so how can i do it
details-ARUINO UNO