Skip to content

NeoSerial.parseInt #11

@2winners

Description

@2winners

hello, im trying to read the next characters in the sentence using .parseInt after i enter the interrupt but the UNO just stops, i send "F 100" and it just dies. not respond to anything in normal serial it will just read '100'

void NeoSerialEvent(char NeoSerialBuffer) {
   switch (NeoSerialBuffer) {
      case 'F' :
          Fan = NeoSerial.parseInt();
          inputString = " fan:";
          inputString += Fan;
          stringComplete = true;
          analogWrite(Fanpin, Fan);
          break;
   }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions