Page 138 - Robots Androids and Animatrons : 12 Incredible Projects You Can Build
P. 138
Statement help: Simply position your cursor over a PICBASIC
statement and get statement-specific help.
Label listbox: The label listbox displays the current label and
allows you to select a label from the list to jump to the
selected label.
Colored PICBASIC Syntax: Set colors for reserved words,
strings, numbers, comments, defines, etc. Colored PICBASIC
syntax makes for easy code reading.
Bookmarks: Never lose your place again. CodeDesigner allows
you to set bookmarks.
Multiple undo/redo: Didn’t want to delete that last line? No
problem. Simply click on the Undo button.
Multiple views: Multiple views of your source code allow you
to easily edit your code.
Print source code.
Drag and drop text.
Row/column-based insert, delete, and copy.
Search and replace.
Compile and launch device programmer.
117
Software installation
When it is being installed, CodeDesigner creates a subdirectory
in the Program Files directory and installs itself there. It puts a
CodeDesigner shortcut on the Start, Program menu in Windows.
First PICBASIC Pro program
This program is identical in function (not code) to the wink.bas
PICBASIC program. Start CodeDesigner (Lite) (see Fig. 6.18) and
enter the following code:
‘Wink program
‘Blinks and winks two LEDs connected to port B
Loop:
High PORTB.0 ‘ Turn on LED connected to RB0
Low PORTB.1 ‘ Turn off LED connected to RB1
1
Pause 500 ‘ Wait second
2
Low PORTB.0 ‘ Turn off LED connected to RB0
High PORTB.1 ‘ Turn on LED connected to RB1
1
Pause 500 ‘ Wait second
2
GoTo Loop ‘ Loop back—repeat cycle blink and wink forever
Team LRN Intelligence