Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:31 07 Jun 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : PicoMite/PicoMiteVGA V5.07.03 betas - major update

     Page 4 of 4    
Author Message
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2510
Posted: 03:27am 30 Dec 2021
Copy link to clipboard 
Print this post

Suggestion for a possible extension to:

OPTION COLOUR VGA OFF

To allow the same hardware to be used for both colour and monochrome in any colour would it be possible switch in extra video output pins in mono mode?
eg

OPTION COLOUR VGA OFF, GP18, GP19, GP20 ,GP21

If any/all of the above pins could be selected then the full RGB(1,2,1) range would be available. If no pins are entered the current default would apply. This way there is no need for an emitter follower to get white.

Does anyone think this is worth Peters time and effort?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10134
Posted: 07:55am 30 Dec 2021
Copy link to clipboard 
Print this post

  Quote  To allow the same hardware to be used for both colour and monochrome in any colour would it be possible switch in extra video output pins in mono mode?


Not possible. Each pin needs a bit in the framebuffer to drive the PIO routine
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2510
Posted: 11:40am 30 Dec 2021
Copy link to clipboard 
Print this post

Ok, thanks for looking at it Peter. Plug-in modules will do the job.
 
mobluse

Newbie

Joined: 10/02/2013
Location: Sweden
Posts: 24
Posted: 09:00pm 30 Dec 2021
Copy link to clipboard 
Print this post

  matherp said  The syntax (manual page 75) is:

BITBANG WS2812 type, pin, nbr, value%[()]

for the Maker Pi Pico use:

BITBANG WS2812 O, GP28, 1, value% or RGB(whatever)

The syntax in the manual page 75 is correct but the description needs amending to mention the case of a single LED


This worked, but the documentation for Maker Pi Pico says it is WS2812 B, and that also works, see page 2 in https://cdn-shop.adafruit.com/product-files/5160/5160_Maker+Pi+Pico+Datasheet.pdf.

I ported an old program I originally wrote for TinyBASIC (32 bit) to PicoMiteVGA MMBasic Version 5.07.03b4: Aritm, a mental calculation trainer:
https://github.com/mobluse/aritmjs/blob/master/aritm-mm.bas. That uses the RGB LED and audio on Maker Pi Pico Rev1.2 by Cytron.
Maker Pi Pico Rev1.2, DuinoMite-Mini, Raspberry Pi 0-4, iCE40HX8K, Arduino Uno, VM111, STK500, ZX81
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4259
Posted: 10:34pm 30 Dec 2021
Copy link to clipboard 
Print this post

Hi Peter,

Use of argument/wildcard with FILES command appears to have stopped working, I'm 99.99% sure it was working previously:

> ? MM.Info(Device)
PicoMite
> ? MM.Info(Version)
5.070304
> files
A:/
  <DIR>  cmm2-basic-challenge
  <DIR>  cmm2-forth
  <DIR>  cmm2-fun
  <DIR>  kingdom
  <DIR>  mmbasic-polar-snake
  <DIR>  mmbasic-scratch
  <DIR>  saaint-private
  <DIR>  saaint-public
  <DIR>  sptools
  <DIR>  zmim
       64  buzz.bas
     1922  fileview.bas
    40588  kingdom_pico_led.bas
    40335  kingdom_pico_led_2.bas
     3483  spi_led.bas
    12637  tst_mminfo.bas
10 directories, 6 files
> files "*"
A:/
0 directories, 0 files
> files "*.bas"
A:/
0 directories, 0 files
> files "buzz.bas"
A:/
0 directories, 0 files


Best wishes,

Tom
Edited 2021-12-31 08:34 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10134
Posted: 10:51pm 30 Dec 2021
Copy link to clipboard 
Print this post

Works in DIR$ never in FILES
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4259
Posted: 11:50pm 30 Dec 2021
Copy link to clipboard 
Print this post

  matherp said  Works in DIR$ never in FILES

Then what are lines 880-883 of FileIO.c for ?

if(*cmdline)
 p = getCstring(cmdline);
else
 p = "*";


Like I said I'm pretty certain this was working earlier.

Also note the source on GitHub contains two FileIO.c files with different name capitalisations.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
     Page 4 of 4    
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025