Programming a Single Digit LED in Forms/3


These figures show how a programmer would construct a single digit LED in the visual programming language Forms/3. Programs in Forms/3 are entered by defining formulas in cells much like spreadsheets. This figure shows each cell with its formula displayed. There are seven cells that make up the LED (one for each line) and one input radio button set. Each cell checks to see if the input value needs a horizontal or vertical line in this position.
Click on picture for full-sized image


Once all the programming is finished and each of the cells is moved into the correct position, the formula tabs and borders can be hidden to clean things up. The horizontal and vertical cells can also be hidden so that we reach a final result as seen here. Now a user simply has to click on the different buttons of the input set and the same digit will be seen in the LED.

Click on picture to see full-sized image


Comments can be sent to:
burnett@cs.orst.edu

All programming and compilation of this html done by Eric Wilcox and Dr. Margaret Burnett at Oregon State University.