You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zacinaction edited this page Jan 28, 2013
·
26 revisions
Using the Serail Port for Debugging
One of the most useful things when you're debugging your code is the ability to send data from the microcontroller back to your PC. To do this we'll use the Serial class. Here's a quick example (which you can download here):
Basically, you'll need to call Serial.begin(9600); in your setup function, then anywhere you'd like to send data back, call Serial.println("Put stuff here");. To see the data on your PC, click the "Serial Monitor" button in the top right corner of the Energia window.