How do I get the arduino to store more than 1 alphanumeric letter?


i have tried run below program displaying
exit status 1
invalid conversion 'const char*' 'char' [-fpermissive]


char = "a";
void setup() {
  serial.begin(9600);

}

void loop() {
  if(serial.available() > 0){
    = serial.read();
    serial.print("you typed");
    serial.println(a);
  }

}

code: [select]
char = 'a';
will 1 character @ time. @ least compile.


Arduino Forum > Using Arduino > Programming Questions > How do I get the arduino to store more than 1 alphanumeric letter?


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'