X11-Basic

From OpenTom

Jump to: navigation, search
X11-Basic
TomTom port of the Basic interpreter X11-Basic which supports graphics.
Properties
Developer: Markus Hoffmann
Version: 1.15  (12.01.2008)
Architecture: linux/intel, arm-linux, windows/intel
Language: {{{language}}}
Comment:
Dependencies
Requires: TTconsole
See also: Software
Image:x11basic.png

Image:Flag-en.gif X11-Basic is a Basic interpreter with graphic capability. The syntax is most similar to the old GFA-Basic ATARI-ST implementation. You can use the X11-Basic interpreter as a shell. Also for execution of CGI-Scripts. You can do any data manipulation and you may use external functions and libraries. At least the X11-Basic interpreter is fast and small.

Image:Flag-de.gif Bei X11-Basic handelt es sich um einen BASIC-Interpreter mit Grafik. Die Syntax gleicht am ehesten der von GFA-Basic (Atari ST). X11-Basic ist für alle UNIX-Plattformen verfügbar. Auf einem Linux-PC kann X11-Basic in Verbindung mit dem X Window System genutzt werden. Es eignet sich aber auch als Skriptinterpreter z.B. für CGI-Skripte und konsolenbasierte Anwendungen. Es gibt auch eine (abgespeckte) Version für Microsoft Windows.

Download

Installation

TomTom:You need to have installed TTconsole before. Then unpack the x11basic binary package (zip file) and move the contents to your Tomtom Directory just as they are. Thats it. Although you should use X11-Basic via the console, an Icon appears in the setting menu. This starts X11-Basic with an example (basic)-program. Currently it is the sun and moon calendar TTsky. Since TTconsole is also running, you can display and use the keyboard, by tapping in the right upper corner of the screen.
PC/linux: The best way is to install the debian package: (double-click on it), or do a dpkg -i x11basic_xxx.deb
PC/WINDOWS: Inside of the -zip file there is a setup.exe, which should do the job by simply clicking on it.

known bugs

  • Following commands do not work (have no effect):
    • DEFFILL, DEFLINE
    • RBOX, PRBOX
    • GRAPHMODE
  • After upgrading to navcore 9, it doesn't work anymore. It starts but after a second the screen goes back to the navigation mode. I can see that the application is still running on the background because once in a while a piece of screen shows the application but you cannot see what is going on because most of the time you see the navigation screen. I think the problem is just with a new window management of the new navcore.

Useful Basic programs for the TomTom

A screenshot of X11-Basic running a Media-Player Fileselector.
A screenshot of X11-Basic running the Sun & Moon calculation.
  • A Media-Player with a nice touchscreen graphics user interface together with madplay (and probably mplayer).
  • TTsky A Sun and Moon calendar. The Sunset, Sunrise, Moonset, Moonrise, Transits, Moonphases, disdances and positions on the sky are calculated.
  • An ov2 file reader and creator.
  • TTaltitude a simple altitude track logger
  • TTmoto and TTcar speedometers
  • Add your project here

Ideas for useful applications

Following ideas can be realized with X11-Basic:

  • Some graphical representation of gps data, as altitude, compass etc..
  • A WEB interface (via bloutooth and cgi-scripts) using a webserver.
  • An alarm-clock. (well, the internal battery does not last long enough, but...)

You can use the package of TTaltimeter so see how, one can make an X11-Basic program install and start via an icon from the TomTom menu.


see also: TTconsole

Personal tools