Using Interactive C at Bryn Mawr
To begin using Interactive C (IC):
- Check to make sure that IC is running on the Handyboard. To do
that, turn it on and see if it says "IC 3.1" and has a little heart
beating. If it is not then:
- Plug the phone wire into the charger, and the Handyboard
- Turn the board off
- Hold down the inner black push button, and turn the Handyboard on
- On the attached computer, in a terminal window, run the command "ic_init"
- Press ENTER, and watch the charger green light flicker, and dots appear on the screen
- Turn the Handyboard off and then back on (i.e., a "reset")
- Once IC is running on the Handyboard, you may now program it. Make
sure the phone cord is connected to the charger and HB.
- Make sure the HB is on
- Run "ic" in a terminal window
- You can then interactively type commands like
motor(0, 255);
or, using the "load" command, you can download a file to the HB
- I recommend using "emacs" to edit your code. But there are many
other editors available on the Linux menus (e.g., gedit, nedit, vi,
xjed, emacs, xemacs, etc.)
- Once you have downloaded your program, you can disconnect the HB
from the charger.
- If you named your program "main()" then it will automatically run
when you turn the board off and then back on (i.e., a "reset").
That's it!
D.S. Blank