NeoHWSerial icon indicating copy to clipboard operation
NeoHWSerial copied to clipboard

NeoSerial.parseInt

Open 2winners opened this issue 5 years ago • 0 comments

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;
   }
}

2winners avatar Jun 03 '20 21:06 2winners