Installing Blassic on the Midge/SunspotThe Blassic Basic Interpreter for Linux/Unix systems from www.blassic.org is a classic interpreter. On linux systems with graphics facilities, it will even emulate the graphic styles of earlier home computers and allow execution of programs writen for them. On the Midge/Sunspot router, it is implimented without graphics functions. Also, to enable the source to be compiled without too many extra requirements, the sin/cos/tan functions were removed from the configuration. The resulting ipkg can be installed on the Sunspot/Midge router and be called from the command line - where you can create, edit and debug basic programs - or from within a script. See the Blassic web site for a list of commands and further info. To install blassic onto a Midge/Sunspot via the web:-If you have added 'picprojects' to your /etc/ipkg.conf (as in the previous page). Type 'ipkg update' to collect an updated list of packages. Type 'ipkg install blassic' Ipkg will install the Blassic packages. You should be able to start the interpreter by typing 'blassic'. To exit and return to the command prompt type 'exit'. Example - LCD message scrollThis example uses the lcd driver program drom the latest sunspot rom and stick to display a scrolling message on line 1 of a 20 character display. It shows how a basic / blassic program can send strings to a command line program (in this case, the lcd driver). The program never ends, if you run it from a terminal window, use ctrl-C to stop it.
|
![]()
A PIC, Linux and a Router |