Page History: MAXIDASH dashboard and IDE
Compare Page Revisions
Page Revision: 2018/04/20 13:30
MAXIDASH is a dashboard, and an IDE of sorts, for the (colour) maximite.
MAXIDASH is a MMBASIC 4 program that runs on the MM to experiment with an MM and to build event-driven programs. You can interactively control pins/ports and enter values and formulas for pins, pretty much like you would enter values and formulas into a spreadsheet. The formulas can be saved and exported to a stand-alone .BAS program.
The export feature currently saves the exported program as a .DSH file which is still an MMBASIC program, since the program itself saves as a .BAS file using the specified file name (ZZZZDASH by default). I'm currently using CHAIN to extend the program when formulas are entered by the user, but perhaps LIBRARY LOAD can be used instead to speed this up in the future.
Download MAXIDASH by selecting the attachments (upper right corner).
Below are two simple MAXIDASH examples. The first is just a simple blinking LED (pin0 is switched each second). The second example runs 8 LEDs on D0-D7 as a continuous wave of 4 LEDs lit up. These simple examples should give you a very basic idea how MAXIDASH is programmed:
PIN0LED = (T\1000) % 2
M0=1000
M1 = 125
M2 = 500
D0 = t % m0 < m2
D1 = (t+m1) % m0 < m2
D2 = (t+2*m1) % m0 < m2
D3 = (t+3*m1) % m0 < m2
D4 = (t+4*m1) % m0 < m2
D5 = (t+5*m1) % m0 < m2
D6 = (t+6*m1) % m0 < m2
D7 = (t+7*m1) % m0 < m2
For the second example, the variables M0, M1 and M2 can be interactively changed in MAXIDASH to influence the pattern, or you can create formulas for M0-M2 based on the timer value (t) or a key press (key) value, e.g. M2=key?10*key:M2 will set M2 to the ASCII value times 10 when a key is pressed.
The program is easy to use and can be easily extended by adding new functions you want to use in formulas, by extending the functions$ string in MAXIDASH.BAS and BASEDASH.BAS. For example, to add support for DS18B20(n), add "1:DS18B20," to functions$, where 1 means one argument is required.
- Rob