Simplifies Serial Communication from openFrameworks
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example_readingMultipleVars
example_readingSingleVars Spelling fix for clarity: 'continuesRead' -> 'continuousRead' May 4, 2013
example_writingVars
example_writingVarsSimultaneously Spelling fix for clarity: 'continuesRead' -> 'continuousRead' May 4, 2013
src Fix EOL Aug 3, 2013
.gitattributes Git Files Nov 24, 2012
.gitignore Git Files Nov 24, 2012
README.md Update README.md Aug 3, 2013
addon_config.mk Move install.xml into addon_config.mk Aug 3, 2013

README.md

ofxSimpleSerial

An addon that simplifies the Serial Communication from openFrameworks

  • Automatic message completion
    Complete messages exist between \n's, sent for example from Arduino with Serial.println(). If the complete message cannot be read during one "update" it will keep listening for updates for it to be completed.

  • Simply use the message property to get the latest complete message

  • Listen for the NEW_MESSAGE event to get properly notified

  • Write to the serial connection using a string

Examples

  • Reading one piece of data
  • Reading multiple pieces of data
  • Writing one piece of data (string)
  • Writing multiple pieces of data (string)
All examples are made with openFrameworks and Arduino

Simple protocol to read data

  • The addon writes an r to the serial connection
  • The other party (Arduino for example) sends an update after it recieves this.
This ensures an in-sync transfer of data