Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:42 27 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 V6.00.00 release candidates - all versions

     Page 23 of 25    
Author Message
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 10:01am 22 Nov 2024
Copy link to clipboard 
Print this post

Not useful, please provide example and an indication of what is wrong
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5015
Posted: 10:12am 22 Nov 2024
Copy link to clipboard 
Print this post

@Peter,

The problem lies deeper....
On Picomite 2040 VGA PS2 6.0 RC16 (the last)

SETPIN GP1,DIN,PULLUP
PRINT PIN(GP1)


Reads a 0, even if I wait 1 second for voltages to stablize, I read 0.

EDIT: even with an external pullup, the pin reads 0
tested on gp0,gp1,gp2

Volhout

P.S.
OPTION RESET VGA DESIGN 2
OPTION CPUSPEED 252000
Edited 2024-11-22 20:36 by Volhout
PicomiteVGA PETSCII ROBOTS
 
GAVI
Newbie

Joined: 20/11/2024
Location: Italy
Posts: 12
Posted: 10:48am 22 Nov 2024
Copy link to clipboard 
Print this post

if you run this program you will see the difference

CLS(RGB(WHITE))
FOR I = 1 IN 200
PRINT @ (I,I),"A"
NEXT I

PAUSE 2000

CLS(RGB(WHITE))
FOR I = 1 IN 200
TEXT I,I,"A"
NEXT I

Out of curiosity, does the PRINT@ command need to exist if I can use TEXT?
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 11:43am 22 Nov 2024
Copy link to clipboard 
Print this post

That isn't valid MMbasic

Try this and then tell me what you think is wrong

MODE 2
print @(100,100)"Hello"
text 100,100,"Hello",,,,rgb(red)

Harm

Sorry - stupid typo - still trying to overcome the Rp2350 latch-up. Will fix
Edited 2024-11-22 21:47 by matherp
 
phil99

Guru

Joined: 11/02/2018
Location: Australia
Posts: 2565
Posted: 11:48am 22 Nov 2024
Copy link to clipboard 
Print this post

What Text can't do that Print@ can is control the position of text on a VT100 terminal.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 12:08pm 22 Nov 2024
Copy link to clipboard 
Print this post

Note also that print puts a CRLF after the output unless you terminate with a semi-colon
 
Volhout
Guru

Joined: 05/03/2018
Location: Netherlands
Posts: 5015
Posted: 12:22pm 22 Nov 2024
Copy link to clipboard 
Print this post

@Peter,

Unless there is new info, the GPIO problem is a hardware problem that does not have a SW fix or workaround. Why not ignore it from a SW point of view, and leave the solution to HW design ? (always usea 10k pullup or pulldown externaly to the GPIO pin).

Volhout
PicomiteVGA PETSCII ROBOTS
 
GAVI
Newbie

Joined: 20/11/2024
Location: Italy
Posts: 12
Posted: 12:39pm 22 Nov 2024
Copy link to clipboard 
Print this post

for example
when I give the command PRINT@(1,1),"a" it seems to print a space character first.
to print at the top left I have to write PRINT@(-8,1)
in fact it deletes an 8x8 rectangle (maybe it depends on the font, I haven't tried with other fonts) before the first character

try the program

CLS (rgb(white))
PRINT@(1,1),"A"
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 12:42pm 22 Nov 2024
Copy link to clipboard 
Print this post

  Quote  PRINT@(1,1),"a"


remove the comma as in my example

PRINT@(1,1)"a"

Edited 2024-11-22 22:43 by matherp
 
GAVI
Newbie

Joined: 20/11/2024
Location: Italy
Posts: 12
Posted: 12:46pm 22 Nov 2024
Copy link to clipboard 
Print this post

ok, my mistake
Thank you
 
GAVI
Newbie

Joined: 20/11/2024
Location: Italy
Posts: 12
Posted: 05:40pm 22 Nov 2024
Copy link to clipboard 
Print this post

I have another problem,
Font 3 of VGA version 6.0RC15 is larger than version 5.08.
Is this something intentional?
Edited 2024-11-23 03:40 by GAVI
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 05:51pm 22 Nov 2024
Copy link to clipboard 
Print this post

It would help if you said what version you are running and what options
 
GAVI
Newbie

Joined: 20/11/2024
Location: Italy
Posts: 12
Posted: 06:27pm 22 Nov 2024
Copy link to clipboard 
Print this post

pico raspberry

Version 6.0RC15 VGA
options:
keyboard us
autorun on

version 5.08  VGA
options
colourcode on
keyboard us
cpu speed 252000


I tried with various fonts but only font 3 is very different.

just run this program on the two different versions and see the difference

FOR i= 1 to 10
fonts 1
print i;
fonts 2
print i;
fonts 3
print i;
fonts 4
print i
next
Edited 2024-11-23 04:34 by GAVI
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 06:51pm 22 Nov 2024
Copy link to clipboard 
Print this post

Thanks: its a bug will fix. Should be HDMI where font 3 is different but not VGA
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 447
Posted: 04:49pm 23 Nov 2024
Copy link to clipboard 
Print this post

Is it possible to make an OPTION to configure the PS/2 keyboard connection pins?
I looked in the PicoMite documentation and did not find anything like that...
My development board has a non-standard PS/2 keyboard connection:

PS/2 CLCK -- GP0 or GP2
PS/2 DATA -- GP1 or GP3

Edited 2024-11-24 02:50 by javavi
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 04:52pm 23 Nov 2024
Copy link to clipboard 
Print this post

No sorry. They have to be connected to an interrupt and it is too complex to make this flexible
 
javavi

Guru

Joined: 01/10/2023
Location: Ukraine
Posts: 447
Posted: 05:00pm 23 Nov 2024
Copy link to clipboard 
Print this post

  matherp said  No sorry. They have to be connected to an interrupt and it is too complex to make this flexible

Then please, please publish the code on GitHub more regularly!
And by the way, by editing a couple of constants in the code, I successfully rebuilt the PS/2 keyboard to other pins...
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 05:43pm 23 Nov 2024
Copy link to clipboard 
Print this post

  Quote  nd by the way, by editing a couple of constants in the code, I successfully rebuilt the PS/2 keyboard to other pins...


OK I'll have another look and see if I can make it flexible.
 
stanleyella

Guru

Joined: 25/06/2022
Location: United Kingdom
Posts: 2512
Posted: 06:00pm 23 Nov 2024
Copy link to clipboard 
Print this post

I use the default ps2 kb pins for usb to ttl , hdmi usb. won't change that I hope
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10170
Posted: 06:48pm 23 Nov 2024
Copy link to clipboard 
Print this post

V6.00.00RC17


PicoMiteRP2040V6.00.00RC17.zip

PicoMiteRP2350V6.00.00RC17.zip


Fixes bug in SETPIN pin,DIN
Count for SETPIN pin,CIN increased to 64-bit
Font 3 for VGA displays is returned to same as V5.08 (ie 16x16)
Font 3 for LCD panels is same as V5.08 (ie 16x24)
Font 3 for HDMI displays is 16x24 and is the default font for 1280x720 and 1024x768 resolutions
A subroutine named MM.END will be run whenever an explicit or implicit END statement is encountered.
If there is no subroutine called MM.END then the program will terminate normally.
Like MM.STARTUP, you could then save a MMBasic subroutine named MM.END in the library and that would be run whenever any program exits.
If a program is exited using Ctrl-C then the function is not executed.
If you don't want MM.END to be executed for any reason use "END noend" to exit the program.

New command (untested)

OPTION PS2 PINS clockpin, datapin
Defaults to GP8,GP9 as before

NB:  Release will delete all options
Edited 2024-11-24 04:57 by matherp
 
     Page 23 of 25    
Print this page
The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025