Handy Board and Interactive C Documentation

Handy Board and Interactive C Documentation

Handy Board and IC Documentation 1818 W Lindsey Bld D, Suite 100 Norman, OK 73069 http://www.kipr.org Handy Board and IC Documentation KISS Institute for Practical Robotics [email protected] ©1997, 1998, 2000 KISS Institute This document is targeted to the versions of the Handy Board and Interactive C distributed by KISS Institute. These materials are modified by KISS Institute, and therefore materials gathered from other sources may not work as described in this manual. This document contains portions of the Handy Board Technical Reference © by Fred Martin and the Interactive C User's Guide v0.9 © 1997 by Anne Wright, Randy Sargent and Carl Witty. Minor editing has been done to make sure these documents reflect the pieces in your kit. The original documents are available in their entirety from the websites listed below. Interactive C User's Guide Updates to your version of IC may be downloaded from http://www.newtonlabs.com/ic More information about the Handy Board can be found at http://lcs.www.media.mit.edu/groups/el/projects/handy-board/ 2 TABLE OF CONTENTS PARTS LIST ....................................................................................................................................................................... 4 THE HANDY BOARD ......................................................................................................................................................... 5 QUICK START.................................................................................................................................................................... 9 Battery Maintenance................................................................................................................................................... 9 SENSORS & EFFECTORS.................................................................................................................................................. 10 Effectors: ................................................................................................................................................................... 10 Sensors: ..................................................................................................................................................................... 11 IC PROGRAMMERS MANUAL.......................................................................................................................................... 14 INTRODUCTION ............................................................................................................................................................... 14 GETTING STARTED ......................................................................................................................................................... 15 Getting Started under UNIX ..................................................................................................................................... 15 Getting Started on the Mac....................................................................................................................................... 17 Getting Started under Windows................................................................................................................................ 17 USING IC......................................................................................................................................................................... 18 IC Commands............................................................................................................................................................ 18 Line Editing ............................................................................................................................................................... 19 Key ............................................................................................................................................................................. 20 Function..................................................................................................................................................................... 20 The main() Function.................................................................................................................................................. 20 IC VERSUS STANDARD C................................................................................................................................................ 20 A QUICK C TUTORIAL.................................................................................................................................................... 21 DATA OBJECTS ............................................................................................................................................................... 23 Variables.................................................................................................................................................................... 23 Constants................................................................................................................................................................... 25 Data Types................................................................................................................................................................. 26 Pointers...................................................................................................................................................................... 27 Arrays ........................................................................................................................................................................ 30 Structures................................................................................................................................................................... 32 Complex Initialization examples .............................................................................................................................. 33 STATEMENTS AND EXPRESSIONS ................................................................................................................................... 34 Operators................................................................................................................................................................... 34 Assignment Operators and Expressions................................................................................................................... 36 Increment and Decrement Operators....................................................................................................................... 36 Data Access Operators ............................................................................................................................................. 36 Precedence and Order of Evaluation....................................................................................................................... 37 CONTROL FLOW.............................................................................................................................................................. 38 Statements and Blocks............................................................................................................................................... 38 If-Else......................................................................................................................................................................... 38 While.......................................................................................................................................................................... 39 For ............................................................................................................................................................................. 39 Break.......................................................................................................................................................................... 39 LCD SCREEN PRINTING ................................................................................................................................................. 39 Printing Examples..................................................................................................................................................... 39 3 Formatting Command Summary .............................................................................................................................. 40 Special Notes............................................................................................................................................................. 41 PREPROCESSOR ............................................................................................................................................................... 41 Preprocessor Macros................................................................................................................................................ 42 Conditional compilation ........................................................................................................................................... 43 Comparison with regular C preprocessors.............................................................................................................. 43 THE IC LIBRARY FILE ...................................................................................................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    68 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us