Closed dpharris closed 8 years ago
Do you have any more info? Does not compile?
Yes, compiles, prints welcome. Seems to fail on the iom.read() step. Never makes it to the (added) print(bp): void loop() { Serial.println("."); // works (added) if (shell.read(bp)) { Serial.print("==>"); Serial.println(bp); // never gets here (added) shell.execute(buf); bp = buf; } delay(500); // (added) }
What board are you using? I tested on Uno and Mega without any problem.
Should try Serial.println(buf) instead. bp points to the end of the input line (0).
Serial Monitor must be in [Newline] mode.
Oh, I think I turned that off .....
On Sun, Mar 6, 2016 at 1:34 PM, Mikael Patel notifications@github.com wrote:
Serial Monitor must be in [Newline] mode.
— Reply to this email directly or view it on GitHub https://github.com/mikaelpatel/Arduino-Shell/issues/30#issuecomment-193001684 .
Yes, that was the problem! Thanks ... will need to note that.
(( I had forgotten I had disabled it for another program I was working on)).
David
Added some startup info about the [Newline] mode in the example sketches that use read().
The other demos appear to work fine.