You will need an application to view the output from the CircuitPython program. Without Mu, we turn to Beagle Term. Install the application by going to this Chrome Page and clicking the Install button.
Click the Start circle. If you don't see Beagle Term on that screen, go to the apps icons by clicking the ^ symbol. Search for the Beagle Term icon.
The Beagle Term opening screen is shown below. the device Port may show up as /dev/ttyACM0
or /dev/ttyACM1
on my Samsung Chromebook corresponding to the two USB ports it has, one on each side of the unit. The port names may vary among different Chromebook devices.
The Bitrate should not matter, you can set the Bitrate as 9600 which we recommend for consistency.
If your code outputs text messages using the print
statement, they can be viewed in Beagle Term.
Pressing the ctrl-c key combination should (should) get you to the CircuitPython REPL. Beagle Term sometimes has failed me here, so I'll not guarantee your Chromebook with Beagle Term might do this. I've looked for a Beagle Term replacement with little success.
If it works, you'll get the REPL as in the screen below.
Serial output is great for debugging. CircuitPython will output error messages to the terminal as well as send output via print statements you put in your code.
If you are in the REPL and want to restart your code.py program, press CTRL-d
.
There is no code plot capability or save to Chromebook file capability. There are rough cut and paste functions built in (see the scissors icon above). This makes Beagle Term inferior to Mu on larger PCs/Macs. If Mu is ported to Chrome OS, we'll look to update this page!