Using Interactive C at Bryn Mawr


To begin using Interactive C (IC):

  1. 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:
  2. Once IC is running on the Handyboard, you may now program it. Make sure the phone cord is connected to the charger and HB.
  3. Make sure the HB is on
  4. Run "ic" in a terminal window
  5. You can then interactively type commands like
    motor(0, 255);
    
    or, using the "load" command, you can download a file to the HB
  6. 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.)
  7. Once you have downloaded your program, you can disconnect the HB from the charger.
  8. 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