[Home]

Support

Resources

Contact Us

 

eBASIC Lite Compiler Code Examples

NOTE: These examples are stored with the .TXT file extension to facilitate viewing of the file with your browser (for example: blinky.bas.txt). Remove the .TXT extension when saving these files locally on our system.

Blinky

Blink an LED attached to PORTB:0. Illustrates the use of simple pin I/O and the PAUSE command. This version uses standard BS2 syntax.

Blinky2

Blink an LED attached to PORTB:0. Illustrates the use of simple pin I/O and the PAUSE command. This version uses the eBASIC syntax extensions of WHILE..WEND for loop control.

Hello

Sends a text message to your PC. Illustrates the use of the DEBUG statement and constant strings. This version uses standard BS2 syntax.

Hello2

Sends a text message to your PC. Illustrates the use of the DEBUG statement and constant strings. This version uses eBASIC syntax extensions for program control.

RC40Blink

Blink an LED attached to PORTB:0. Illustrates the use of simple pin I/O and the PAUSE command. This version uses the eBASIC syntax extensions of WHILE..WEND for loop control, and is targeted at the RC40 Controller.

RANDOM

This program generates and displays a series of psuedo-random numbers.

STDIO

Illustrates standard I/O using PUTCHAR, GETCHAR, and INCHAR to receive characters from your PC and echo them back again.

EEPROM

Illustrates the use of DATA, READ, and WRITE commands to utilize the on-board EEPROM data memory from within your eBASIC program.

Rover

Rover program illustrating servo control and object avoidance on the CR-01 platform, using the RC40 controller. Contributed by Eric Lundquist form the Austin Robot Group. 

 

Interrupts

Program illustrating the use of a user interrupt routine to capture a timer event. 

 

Servos

Program illustrating multiple servo control using the RC40 controller.  

 

 

BASIC Stamp is a registered trademark of Parallax, Inc.

Updated: December 31, 2004

Home   Resources    Contact Us


Copyright© 2003, Compubotics LLC