Here you can search through the pages of this Namespace, their attachments and the files uploaded to the system.
Note: the results will only display the items you have permissions to read.
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). Maxifont is a small program written by Dennis Wyatt for the Maximite Computer by Geoff Graham 2011/2012. It will create a font, based on your input and save the font to a filename of your choice, appended with the .fnt descriptor. [...]
[...] laser refill powerup existence variable
lasFillX=0 'Setting up laser fill powerup x position variable
lasFillY=0 'Setting up laser fill powerup y position variable
'Setting up all position variables
px=120
py=100
lx=0
ly=0
fbtotal = 0
fb1x = 0
fb1y = -16
fb2x = 0
fb2y = -16
fb3x = 0
fb3y = -16
fb4x = 0
fb4y = -16
fb5x = 0
fb5y = -16
fb6x = 0
fb6y = -16
fb7x = 0
fb7y = -16
fb8x = 0
fb8y = -16
fb9x = 0
fb9y = -16
fb10x = 0
fb10y = -16
fb11x = 0
fb11y = -16
fb12x = 0
fb12y = -16
fb13x = 0
fb13y [...]
A purely MMBasic GUI pack to provide a WindowsCE/95 look-a-like LCD panel interface for your projects. This is a work in progress in my spare time. This document has lots of improvements required - and I'll do them... just need a bit more time. Still to come: Lists, Drop-down Lists, tab strips, pop-up windows (if I can work out a way to do it). As it is now, it provides a lot of functionality and is usable. If you only need the simpler end of the GUI - buttons, checkboxes, radio buttons and text boxes etc, it is good to go. Let's face it; they probably cover 100% of [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). ENIGMA.BAS
'ENIGMA for Maximite
'written by Ray Alger April 2015
'Output file added by Hugh Buckle May 2015
OFileName$="EnigOut.txt"
Dim RD$(10):Dim D$(4):Dim R(4):Dim V(5):Dim RS(4):Dim RP(4)
[...]
[...] prn1
DO ' loop until screen update needed
DO ' loop until key press
' turn a star on
x = w2+3+(prn1 MOD (w3-5))
PRNG.update prn1
y = h1+3+(prn1 MOD (h2-5))
PRNG.update prn1
IF x+y AND 7 THEN
PIXEL(x,y) = -1
ELSE
LINE (x-1,y)-(x+1,y),-1
LINE (x,y-1)-(x,y+1),-1
ENDIF
' turn a star off when maxstars painted
IF stars = maxstars THEN
[...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). Hearts.bas :
'*****************************************************
[...]
[...] length
'Opening animation starting
'Dont turn on anu sprites above this line or BLIT will glitch
for x=1 to scrLength 'Using BLIT command to "Scroll" the screen to the left
BLIT 0,0,-1,0,240,216
BLIT 0,0,239,0,1,216
Pause 100
next x
blit 0,0,103,138,48,48 'copying blank part of the screen to cover bmp earth
'turning sprites on
'earth
Sprite on 1,spr1x,spr1y 'replacing BMP earth with sprite earth
Sprite on 2,spr2x,spr2y
Sprite on 3,spr3x,spr3y
Sprite on 4,spr4x,spr4y
Sprite on 5,spr5x,spr5y
Sprite on 6,spr6x,spr6y
Sprite [...]
[...] platforms - the MMX and ST's Arm base processors - the H7/F4 platforms. The routines below are a purely MMBasic solution and so can be used on any MMBasic platform supporting the SPI bus. The approach with the code here is comparable to a sequential file. Data is written using one function and read back with another. When data is exhausted a marker, CHR$(255), is reached. This is analagous with the EOF character of disk filing systems. This code provides a simple system of strings in, strings out. It handles just this - what you actually store [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). MAXITREK.BAS :
'****************************
'* MaxiTrek v1.0 - Title *
'* a game by Juri Fossaroli [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). MAXMAN.BAS :
'* * * * * * * * * * * * * * * * * * * * * * * * *
'* *
'* - M A
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). HIGHIQ.BAS
5 CLS
10 PRINT TAB(33);"HIGH - IQ"
15 PRINT:PRINT
20 PRINT TAB(15);"CREATIVE COMPUTING - MODIFIED BY BILL BROWN"
40 DIM B(70),T(9,9)
50 LOCATE 40,70:INPUT"DO YOU REQUIRE INSTRUCTIONS - (Y/N) ";Q$
60 [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). CHECKER.BAS
1 CLS
2 PRINT TAB(30);"ONE CHECK"
4 PRINT TAB(15);"CREATIVE COMPUTING MODIFIED BY BILL BROWN FOR MAXIMITE"
6 PRINT:PRINT:PRINT
8 DIM A(64),Z(10,10)
10 PRINT "SOLITILE CHECKER PUZZEL"
15 PRINT
20 [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right).
100 PRINT:INPUT "MAZE - WHAT ARE YOUR WIDTH, LENGTH";H,V
102 IF H<>1 AND V<>1 THEN 110
104 PRINT "MEANINGLESS DIMENSIONS. TRY AGAIN.":GOTO 100
110 DIM W(H,V),V(H,V)
120 PRINT
130 PRINT
140 PRINT
150 [...]
[...] INA219 Arduino library originally created by K. Townsend (Adafruit Industries) It has been tested on MMBasic v5.04.04. It also includes corrections to the PowerDivider_mW calculation in the calibration routines as well as converts the negative readings (in 2's complement) to positive. The datasheet for the INA219 can be found here. The INA219 is a very handy little voltage/current/power sensor that communicates via the I2C databus. I hope you all find it as handy as I have! GTG!
'INA219 routine
'Code for a Micromite to communicate with a INA219 current sensing [...]
[...] swaps) but it is essentially the same code as the bubble sort here: Bubble Sort (part of the original MMBasic library) . For completeness, here is a Shell Sort in MMBasic. Assumptions :
Option Base 1
Dim xx As Integer
xx=my_arraysize 'lack of UBOUND() means we have to manually track the array size
Dim SP$(xx)
Usage :
CR2Sort my_arraysize
The Routine : It uses the string array SP$ and you must pass in the number of elements to sort (this is usually the whole array size but you might only want to sort the first 20 [...]
[...] The following is a series of graphics primitive subroutines that make it easy to pass conventional x,y co-ordinates and plot them correctly using the native windowing co-ordinates, using old the school drawing commands PLOT, DRAW and MOVE. This makes it a cinch to produce nice looking graphs without tying your brain in a knot with windowing co-ordinates. It also introduces the concept of a graphics cursor which leaves the "pointer" at the last referenced point on the display. I have more to add (including a scaling ORIGIN command to place the co-ordinate system anywhere [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). MMBasic Source Compression Utility CRUNCH.bas v2.4 Author: Hugh Buckle June 2013 Updated: Dec 2014 to v2.4 This suite of programs takes an MMBasic program, reduces its [...]
[...] aimed at the MicroMite range of micro-controllers but the ideas are fully migrate-able across all the MMBasic platforms and beyond. On the smaller micromites, some tasks can be a big ask for an interpreter at 48MHz (or slower). Some of the following tips got an RC4 encryption algorithm usable - it was struggling to do un-encrypt >> process >> encrypt in under 1.5 seconds. It's still tight for long strings but it's usable now. So these tips can help and even have proved vital in some instances - do not dismiss as mere pedantry too lightly. This isn't an exhaustive list; [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). TICTAC.BAS :
' TIC-TAC-TOE 1 PLAYER
Mode 4
f=7
background:
b=random(6)
If b=6 Or b=3 Or b=2 Then f=0
Color f,b
Dim pk(9)
Cls
For x=0 To 99:t=Val(Inkey$):Next x
Font [...]
[...] exotic about it - no CFunctions or anything, it is a good demonstration of using the building blocks in MMBasic to provide an intelligent (and for me) really useful tool that sees daily use. It represents about two months of evolving code with tears, tantrums, a few late nights and a lot of head scratching... READ THE DATASHEETS - over and over until they make sense. It exposes a web API allowing text messages to be sent via a web browser or any HTTP client (i.e. your own programs). These are then forwarded in real time to the GSM network. The API is multi-session and up [...]
[...] board (typically the ground node). The test wire is used to alternatively probe the good board at node X, and the suspect board at the same node. When waveforms differ between boards, that points to the culprit. The tool has a memory button, so the waveform of the known good board can be checked more carefully. If there is no "known good" circuit is available, still comparison can be made to similar nodes in the same circuit, and differences will point to the culprit. In example microprocessor pins are all similar, if one pin shows a different impedance, there is reason [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). Hello all. Here's SUDOKU for Maximite version 1.0 (final?). Features: Requires MMbasic v3.1. Three types of difficulty: Easy, Medium and Hard. In the empty grid you can enter numbers and key lock. [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). This is a version of the Space Invaders game for the Maximite. It was written by Fabrice Muller (France). To play, unzip all the files into a directory on your SD card, change into the directory and then run the file INVADERS.BAS. [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : Any required file(s) are available in the attachments tab (top right). Demonstration programs for the Colour Maximite: CMM4_TST.BAS A test program that demonstrates various graphics on the Colour Maximite running in MODE 4. These include coloured lines, boxes, circles and moving images on the screen [...]
[...] but is tweaked slightly from the original and returns a datetime string (DD-MM-YYYY HH:MM:SS) with x intervals added. Intervals are specified with a string and are: yyyy - Year mm - Calendar Month w - Calendar week (7 days) dd - Day h - Hour m - Minute s - Second By default the interval is added to the supplied date, to subtract it, make the numberof value negative e.g. x=-x or x=x-2*x There is little to no error [...]
[...] page is an attempt to summarise and link to the various LCDPANEL drivers available for the various MMBasic platforms. These can be built in (OPTION LCDPANEL xxxx), Cfunction loadable drivers or MMBasic drivers implemented with the OPTION LCDPANEL USER method. The scope includes links to various TBS threads that discuss supporting PCB designs, drivers etc, where to purchase. In general this page will try to link to relevant threads on TBS rather than reproduce the information here. This page initially inspired by @panky's TBS post . TBS [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : The required file(s) are available in the attachments tab (top right).
10 ' BMPSHOW: displays a 1-bit BMP image
20 ' from Bruce Mitchell <brucepython@gmail.com>
30 '
40 ' BMP is a format with many variations and vagaries.
50 ' Don't be surprised if some images appear inverted, [...]
This module is part of the original MMBasic library. It is reproduced here with kind permission of Hugh Buckle and Geoff Graham. Be aware it may reference functionality which has changed or is deprecated in the latest versions of MMBasic. Note : The required file(s) are available in the attachments tab (top right). ' ' Battery Management Program for Caravan 12V System ' Copyright Doug Pankhurst May 2013 ' Written for MMBasic V4.3a, copyright Geoff Graham 2012 ' ' ' File Version: 2.04 May 2013 ' This is an updated [...]
[...] CONST Mime$="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" Code: FUNCTION B64Enc$(x$)
LOCAL INTEGER c1,c2,c3,w1,w2,w3,w4,n
LOCAL STRING so$
FOR n=1 TO LEN(x$) STEP 3
c1=ASC(MID$(x$,n,1)): c2=ASC(MID$(x$,n+1,1)+CHR$(0)): c3=ASC(MID$(x$,n+2,1)+CHR$(0)): w1=INT(c1/4): w2=(c1 AND 3)*16+INT(c2/16)
IF LEN(x$)>=n+1 THEN w3=(c2 AND 15)*4+INT(c3/64) ELSE w3=-1
IF LEN(
Some languages provide the FORMAT$() function - indeed this features in MMBasic for the MaxiMite but has been dropped from versions intended for the MicroMite (V4.5 onward). It can be an intensive function for some often quite fringe functions. A fully fledged version is documented here . I think you'll agree it is a lot of work for often little payback... fine on PC's with multi-gigabyte memories but not really worth the flash in confined systems when the function is rarely used. In MMBasic, the STR$() function does provide a lot of the [...]