Author Topic: Arduino Serial Interact  (Read 709 times)

0 Members and 1 Guest are viewing this topic.

Offline cosenmarcoTopic starter

  • Regular Contributor
  • *
  • Posts: 59
  • Country: de
Arduino Serial Interact
« on: July 16, 2018, 08:27:27 am »
Hi, I want to make the community aware of this little library I wrote for Arduino: https://github.com/cosenmarco/arduino-serial-interact
The idea is to have an interface to send commands to Arduino either for scripted workflows or for direct interaction using the serial link.
One can switch between human and machine mode using the specified command.
Feedback is appreciated.
 

Offline obiwanjacobi

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: Arduino Serial Interact
« Reply #1 on: July 16, 2018, 10:38:53 am »
Commands with parameters?

Also you might want to read more chars on one cycle of the main loop.
Something like?

Code: [Select]
void InteractionManager::loop(int count) {
    while (stream.available() && count--) {
        acceptChar(stream.read());
    }
}
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf