Example ProgramsHere's the code for a little demo we made. It involves a small schematic, and whether you build it or not, you'll get the idea of how to do digital Pin IO and multitasking. The program counts from 0 to 9 (and repeats) one number per second and displays the count on an LED display. At the same time, another task runs that flashes the LEDs on the BX24 the number of times shown on the display and waits until the display changes. Schematic is also included. Create a project and add this file to the project. Hit 'Compile and Run' from the Compile menu and go ooh...ahh a couple of times. Demo.bas -- The Source File Demo.jpg -- The Schematic This document created by: CJ Oster and Joe Ngai Last Modified: April 09, 2003 |
|