Skip to content
kscheff edited this page Nov 15, 2016 · 12 revisions

Welcome to the BlueBasic wiki! https://github.com/ozarchie/BlueBasic/wiki

Things to know:

REBOOT [UP]

Reboots the device. Optional parameter 'UP' sets the device in restore mode for firmware upgrade. This is helpful when you want to program a new firmware in the filed with your iPhone. You then can use the BlueBasic-xxx.bin file together with the TI SimpleLink Starter App by emailing yourself the bin file and open it in the TI App.

After uploading a new BASIC program, the device stalls when disconnecting the bluetooth connection. 'AUTORUN ON' doesn't do the trick. In this situation a device reset is the only way out. To avoid this situation (e.g. when upgrading a device deeply buried somewhere) use this sequence:

Upload BASIC program and issue at the the end:

AUTORUN ON
REBOOT   <-- here you need to be quick and disconnect the bluetooth connection

When you have been fast enough the device executes 'AUTORUN ON' and everything runs normal. If you are too slow, the device will not start to work until you issue a manual hard reset.

Programming:

There is no way to access arrays in a timer routine, since arrays are private to the task. The only way around this is to save and load the array to a file.

Timer 3 seems to be buggy, at least when you start to use all 4 timers together. Then the device fails and does not respond anymore.

Debugging:

When running a program with timers, it is awkward to stop the program. You can stop the timers individually by just typing 'TIMER 0, STOP', this works also when the output view overwrites your input. There is a faster way to stop execution of all timers by entering a empty BASIC line, e.g. just enter '1' (make sure you use a line number you don't actually need, since this will be lost).

Clone this wiki locally