Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
char txt[27];
int i=0;
void setup() {
Serial.begin(9600);
pinMode(13,1);
}
void loop() {
if(Serial.available()>0){
i=0;
while(Serial.available()>0){
char fn=Serial.read();
txt[i]=fn;
i++;
}
txt[i]='\0';
}
Serial.println(txt);
while(Serial.available()==0){}
}
A
B
C
D
E
F
G
H
I
J
K
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.