Welcome Guest, you are in: Login

Fruit Of The Shed

Navigation (MMBasic)






Search the wiki

»


Search Engine

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.



Filter by Category

Select allNoneInvert









































This search, performed through 3.39 MB (230 documents, 12918 words), completed in 0.0 seconds and yielded 30 results.

MOON.BAS lunar calendar with graphics and simple GUI — 10.7%

[...] > n ENDIF END SUB ' draw rounded box at x,y to x+w,y+h color c background b corner radius r SUB DrawBox(x,y,w,h,c,b,r) IF r > 0 THEN CIRCLE (x+r,y+r),r,b,F CIRCLE (x+r,y+r),r,c CIRCLE (x+w-r,y+r),r,b,F CIRCLE (x+w-r,y+

Maze.bas — 6.1%

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 [...]

ENIGMA Code simulators — 4.3%

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 [...]

Regular Expression Function — 4.1%

[...] routine. That in turn used Rob Pike's algorithm. It is reasonably fast and brings a powerful feature to MMBasic. It is not a full-blooded regexp function but catches the following functionality: . matches any single character [abc] matches a or b or c ? matches zero or one of the previous character * matches zero or more of the previous character e.g. A* is any number of A's + matches one or more of the previous character ^ matches begin of text e.g. ^A means the string must start with A $ matches end of text e.g. A$ means the string must [...]

MMBasic Source Compression Utility — 2.8%

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 [...]

Hi-IQ (Solitaire) — 2.4%

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 [...]

Short range radio network (not WiFi). SLAVE module. Uses cheapie 433MHz modules or HC-12 — 1.9%

[...] Link$="COM1:9600,260" Dim MyAddr As Integer Dim MyJob As String Dim a$, tm$, cmd$, pl$, R ' R is the serial buffer Dim Integer c,src,dst,n Dim Integer FLAGS=0 ' 0 STX ' 1 GS ' 2 ETX ' 3 Init. device has restarted And never heard from the master ' 4 in FIRE mode ' 5 in SAFE mode ' 6 just been configured ' 7 ' 8 ' 9 '10 '11 '12 [...]

MaxiTrek — 1.8%

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 [...]

MMBasic Source Code Formatter — 1.8%

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 Formatter ver 2.3 20/4/2013 Format.bas is a program to indent lines of MMBasic source code in order to highlight the program structure. Four methods [...]

Colour Demos — 1.7%

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 [...]

_MMBasic Code Library — 1.4%

Welcome to the {NAMESPACE} namespace (zone) of MMBasic is an interpreter for members of the PIC 32MX & 32MZ, STM H7 & L4 micro-controllers, the Raspberry Pi and a DOS version. Principally developed by Geoff Graham for PIC32MX and later Peter Mather's eXtreme version for the PIC32MZ and versions for the STM H7 and L4, you can get it and read all about it here:  http://mmbasic.com/ It provides a rich programming interface that harks back to the "feel" of the original (and widespread) MicroSoft Basic languages with definite influence from [...]

RENUM.BAS — 1.4%

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). RENUM.BAS RENUM.BAS is written in MMBasic and requires at least version 4.3a. Renum.bas renumbers basic files, the same way the RENUMBER command used to work in version of MMBasic [...]

PSYCTEST.BAS — 1.4%

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). ' Pyschological Type Test '------------------------ ' Author: Graeme Anderson ' Date: Nov-2012 '------------------------ Option [...]

LCD Panels Summary — 1.4%

[...] 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 [...]

MMX - time of the seasons — 1.3%

[...] ''''''''''''''''''''''''''' local eps, a, b, c, d, e, fa, fb, fcc, tol1 local xm, p, q, r, s, xmin, tmp eps = 2.23e-16 e = 0.0 a = x1 b = x2 esfunc(a, fa) esfunc(b, fb) fcc = fb for iter% = 1 to 50 if (fb * fcc > 0.0) then c = a fcc = fa d = b - a e = d end if if (abs(fcc) < abs(fb)) then a = b b = c c = a fa = fb fb = fcc fcc = fa end if tol1 = 2.0 * eps * abs(b) + 0.5 * [...]

Battery Capacity Test — 1.3%

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). BATTERY.BAS 100 ' BATTERY.BAS 105 ' Program to test the capacity of a battery 110 ' See Silicon Chip May 2011 for circuit details 115 ' V1.0 120 ' 125 ' 130 ' Measured resistance of the four load resistors 135 ' These [...]

Some Hints & Tips for writing efficient code. — 1.3%

[...] 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; [...]

DCF77 DigiClock — 1.3%

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). ' -------------------------------------------------------------------------- ' ' [...]

REVERSE.BAS — 1.1%

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). REVERSE.BAS 10 PRINT TAB(32);"REVERSE" 20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY" 30 PRINT:PRINT:PRINT 40 RANDOMIZE TIMER 100 PRINT "REVERSE -- A GAME OF SKILL": PRINT 130 DIM A(20) 140 [...]

BIN8.BAS — 1.0%

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. Although MMBasic contains a function to return a binary string of any length from an argument, this module is interesting because it contains a number of useful function beyond simple conversion. BIN8.BAS ReadMe - crackerjack, March 2012 The BIN8.BAS "library" of byte-wide [...]

INA219 Current Sensor — 1.0%

[...] 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 [...]

ARMMite H7 Pin Aliases — 1.0%

The ARMMite H7 is a new MicroMite running MMBasic on the powerful STM32H743ZI and STM32H753ZI MicroController. You can grab the complete firmware and join the discussion here: backshed forums . The previous discussion is 18 pages(!) but worth reading to get the full story, but bear in mind it has been superseded by the former and is no longer updated: old thread It seems a popular way of utilizing this processor for small production/hobbyist is ST's Nucleo evaluation board. There are several suppliers but Farnell/Element14 seem to be well priced with good availability. [...]

Polar and Rectangular Co-ordinate Conversion Functions — 1.0%

[...] (non-zero). Syntax: Polar (X,Y[,opt]) - the output will be in the two global variables Th and R Rect (Theta,radius[,opt]) - the output will be in the two global variables X and Y Examples: Polar 10,27,1 : Print Th,R > 20.3231 28.7924 Rect 20.3,28.7,1 : Print X,Y > 9.95705 26.9174 'Preamble CONST Deg2Rad=360/(2*Pi) Dim Float Th,R,X,Y Sub Polar(x As Float,y As Float,opt As Integer) ' opt 0 = radians, Not 0=degrees If y=0 Then y=1e-6 'eliminates div zero errors

A Simple GUI pack — 1.0%

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 [...]

MMSudoku — 1.0%

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. [...]

MM_Event — 0.9%

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). SE02.BAS : 'File....: SE02.Bas ' 'Author..: Simon Whittam ' 'Email...: s.whittam(at)xnet.co.nz ' 'Date....: 8th September 2013 ' 'Language: Maximite BASIC, v4.4 ' 'Purpose.: To provide an [...]

Small Strings — 0.9%

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 code is intended for early versions of MMBasic where strings were fixed at 255 characters in length (but after PEEK and POKE were implemented). This is no longer the case but this code is included [...]

REPLACE$ Function (VB work-a-like) — 0.9%

[...] 'replaces all / in the date with - Code : Function Replace$(a$,b$,c$) Local Integer z,d,e Local r$,x$ z=1:d=Len(c$):e=Len(b$):r$=a$ Do z=Instr(z,

Driving LCD from MMBasic — 0.9%

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). Demonstrates how to talk to a "standard" LCD display based on the Hitachi HD44780 controller and compatibles. Later versions of MMBasic have inbuilt commands which are simple and faster. If you have [...]

BLITDEMO.BAS — 0.9%

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 SCREEN.BMP is available in the attachments tab (top right). '------------------------------------ ' ' B L I T D E M O ' ' A demonstration [...]