![]() |
Forum Index : Microcontroller and PC projects : PicoMite V6.00.00 release candidates - all versions
![]() ![]() ![]() ![]() |
|||||
Author | Message | ||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10170 |
Not useful, please provide example and an indication of what is wrong |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5015 |
@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: ItalyPosts: 12 |
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 KingdomPosts: 10170 |
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: AustraliaPosts: 2565 |
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 KingdomPosts: 10170 |
Note also that print puts a CRLF after the output unless you terminate with a semi-colon |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5015 |
@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: ItalyPosts: 12 |
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 KingdomPosts: 10170 |
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: ItalyPosts: 12 |
ok, my mistake Thank you |
||||
GAVI Newbie ![]() Joined: 20/11/2024 Location: ItalyPosts: 12 |
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 KingdomPosts: 10170 |
It would help if you said what version you are running and what options |
||||
GAVI Newbie ![]() Joined: 20/11/2024 Location: ItalyPosts: 12 |
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 KingdomPosts: 10170 |
Thanks: its a bug will fix. Should be HDMI where font 3 is different but not VGA |
||||
javavi![]() Guru ![]() Joined: 01/10/2023 Location: UkrainePosts: 447 |
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 KingdomPosts: 10170 |
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: UkrainePosts: 447 |
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 KingdomPosts: 10170 |
OK I'll have another look and see if I can make it flexible. |
||||
stanleyella![]() Guru ![]() Joined: 25/06/2022 Location: United KingdomPosts: 2512 |
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 KingdomPosts: 10170 |
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 |
||||
![]() ![]() ![]() ![]() |
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |