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 : RP2350 firmware
Page 18 of 20 | |||||
Author | Message | ||||
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1240 |
Hi Peter, maybe you'd like to - when you have some time - come up with and implement a mechanism for a command to execute and/or edit? Please! Kind regards Michal @Vadim (javavi) I like your file manager. Maybe you should open a separate thread for that? Ten years ago I built my file manager for Maximites. I think that was my first MMBasich project. Regards Michael EDIT: Execute "run GetCurrFullName$(PSide$)" to start a program works! The only thing missing is the return to FM. Could programmed F-keys help with this? Note: Mode=1! Edited 2024-09-23 05:21 by twofingers causality ≠ correlation ≠ coincidence |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
what's wrong with b: files? I always connect win mmedit and mmcc. don't use sd cards much just test them working with pico2 . where's it all going? pico2 should be 2040 with more memory and 50% faster but what's it becoming? |
||||
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1240 |
??? No issues here! causality ≠ correlation ≠ coincidence |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
??? No issues here! meant do we need a file editor? |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
We have a text file editor. :) FILES is like DIR in DOS. In fact, MMBasic is fairly DOS-like in that respect. What it doesn't have is something like Midnight Commander built in - but then again neither does DOS. :) I just move the SD card into my Windows box if I want to do serious file rearranging. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9105 |
Lets be clear and same relates to edit. Running a new program (edit or otherwise) wipes everything else - there is nothing left to return to. If someone want to recode MMbasic to deal with this feel free. CMM2 has vastly more memory so can maintain context. This won't work on RP2040/RP2350 without PSRAM and PSRAM cannot be assumed available without massively restricting target H/W and in any case is V slow. Edited 2024-09-23 06:27 by matherp |
||||
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1240 |
Lets be clear and same relates to edit.... [354] Execute "Edit GetCurrFullName$(PSide$)" Error : Invalid in a program Thanks Peter for thinking about this. Michael Edit:FYI: Executing "EDIT filename$" at the command prompt results in a reboot for me. PicoMiteHDMI MMBasic Version 6.00.00b6 Edited 2024-09-23 07:09 by twofingers causality ≠ correlation ≠ coincidence |
||||
electricat Senior Member Joined: 30/11/2020 Location: LithuaniaPosts: 161 |
@javavi I even started making one in MMBASIC, but it is not finished. It only does not work for editing and launching programs. Haha.. nice manager! While writing ZX Spectrum Ms. Pacman`s room editor, I wrote small file "navigator" FM_02.zip (without listing directories as I do not needed at the moment) and as I badly wanted file navigator like in CMM2, I came to workarround idea. I saved small navigator to ->> FLASH 1 slot, then added ->> OPTION F5 FLASH RUN 1 Now, anytime I want run load program for run/editing I press F5, browse for file I need run/edit >> select&run After Ctrl+C it can be edited, only changes must be saved using SAVE "****.bas" (F2 will not save) This protects against file name typo errors on loading, also makes it faster switching through files I want to play with. Edited 2024-09-24 00:35 by electricat |
||||
Volhout Guru Joined: 05/03/2018 Location: NetherlandsPosts: 4222 |
Hi electricat and javavi, I combined electricat's idea with javavi's midnight commander and VOILA.... I think we have a winner. And we have a "MATRIX" screensaver. Beautiful. Only need to use flash slot 2, since 1 and 3 are used in some games..... Volhout Edited 2024-09-24 00:48 by Volhout PicomiteVGA PETSCII ROBOTS |
||||
twofingers Guru Joined: 02/06/2014 Location: GermanyPosts: 1240 |
Got it! I did that ten years ago too! But I hope there's a more elegant way to edit files ...? BTW. User Manual MMBasic Ver 5.08.00 p81: Wrong: This command must be run at the command prompt (not in a program). Correct: Works also in a program! Edited 2024-09-24 01:45 by twofingers causality ≠ correlation ≠ coincidence |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
I just got pico2 usb hdmi olimex working. I used female headers with long leads on the pico2 board and wired the usb to ttl to the header. how to wire the 5V from usb to ttl to vbus to power pico2 and usb keyboard otherwise? asked for feed back... works :) |
||||
Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 6778 |
There's a PM for you, Stan. Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
> option list PicoMiteVGA MMBasic USB Edition 6.00.00b6 OPTION SERIAL CONSOLE COM2,GP8,GP9 OPTION FLASH SIZE 4194304 OPTION COLOURCODE ON OPTION KEYBOARD US OPTION CPUSPEED (KHz) 315000 OPTION HDMI PINS 1, 3, 7, 5 OPTION SDCARD GP22, GP6, GP7, GP4 OPTION AUDIO GP26,GP27', ON PWM CHANNEL 5 OPTION MODBUFF ENABLE 192 OPTION PLATFORM OLIMEX I got pico2 usb vga board and that now has modes like hdmi. which board to follow. vga is older so more people got one than olimex hdmi. thanks to matherp for all this |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
had to wire serial ie usb to ttl to gp8,gp9 . now win mmcc works and mmedit working ok. pico 2 usb hdmi works... if you got any memory left. mode 3 ok but seems better on vga ie more pixels less overhead for hdmi |
||||
stanleyella Guru Joined: 25/06/2022 Location: United KingdomPosts: 2120 |
with a usb keyboard says gamepad available with wireless micro kb and mouse pad it says mouse available |
||||
Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 509 |
Hi Peter, Ref. your request for a program to reproduce the Mode 1 wide screen problem earlier. Attached is a copy of clockclock24vga it is the program which generates the images I uploaded. Regards Kevin. clockclock24vga.bas.zip |
||||
guma1975 Newbie Joined: 13/01/2023 Location: PolandPosts: 7 |
Hello it seems that there is a bug in picomite v6 b08 rp2350 in the terminal. if it displays a syntax error or any other, it changes the option display to 20.40 I will paste an example, maybe you can check if it is the same for you? I apologize for my English, but it is from a translator, and best regards. ---------------------------- > option list PicoMite MMBasic Version 6.00.00b8 OPTION SYSTEM SPI GP10,GP11,GP12 OPTION SYSTEM I2C GP0,GP1 OPTION FLASH SIZE 4194304 OPTION COLOURCODE ON OPTION CPUSPEED 378000 'KHz OPTION DISPLAY 40, 160 OPTION LCDPANEL ST7789_320, LANDSCAPE,GP8,GP15,GP9,GP13 OPTION TOUCH GP16,GP17 GUI CALIBRATE 0, 410, 3852, 895, -660 OPTION SDCARD GP22 > files A:/ <DIR> . <DIR> .. 14:19 25-09-2024 1024 Barnsley.bas 00:00 01-01-2000 4 bootcount 14:10 25-09-2024 18560 DN.bas 14:10 25-09-2024 1024 Honeywell.bas 14:10 25-09-2024 2048 i2ctest.bas 14:10 25-09-2024 640 ir.bas 00:00 01-01-2000 292 lcd_test1.bas 14:10 25-09-2024 640 modbus1.bas 14:10 25-09-2024 768 NEC_SEND.bas 14:10 25-09-2024 384 RotacjaBIT.bas 14:10 25-09-2024 3328 tt4x6.fnt 2 directories, 11 files, 2273280 bytes free > option ass Error : Invalid Option > option list PicoMite MMBasic Version 6.00.00b8 OPTION SYSTEM SPI GP10,GP11,GP12 OPTION SYSTEM I2C GP0,GP1 OPTION FLASH SIZE 4194304 OPTION COLOURCODE ON OPTION CPUSPEED 378000 'KHz OPTION DISPLAY 20, 40 OPTION LCDPANEL ST7789_320, LANDSCAPE,GP8,GP15,GP9,GP13 OPTION TOUCH GP16,GP17 GUI CALIBRATE 0, 410, 3852, 895, -660 OPTION SDCARD GP22 > files A:/ <DIR> . <DIR> .. 14:19 25-09-2024 1024 Barnsley.b as 00:00 01-01-2000 4 bootcount 14:10 25-09-2024 18560 DN.bas 14:10 25-09-2024 1024 Honeywell. bas 14:10 25-09-2024 2048 i2ctest.ba s 14:10 25-09-2024 640 ir.bas 00:00 01-01-2000 292 lcd_test1. bas 14:10 25-09-2024 640 modbus1.ba s 14:10 25-09-2024 768 NEC_SEND.b as 14:10 25-09-2024 384 RotacjaBIT .bas 14:10 25-09-2024 3328 tt4x6.fnt 2 directories, 11 files, 2273280 bytes free > |
||||
matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 9105 |
Kevin There is nothing wrong with the framebuffer copy. I think it is either a Basic program error or an error in the polygon command. If I write direct without a framebuffer I get the same thing and if I just output the bottom row of clocks I get the same thing. Please can you do more diagnostics on the Basic program itself and check whether the output to the polygon command is correct. If it is can you try and produce a simple example of where the polygon command fails Looks like a bit if VGA version code is incorrectly impacting non-VGA functionality. Will look at it |
||||
Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 509 |
Hi Peter, First quick and dirty check, if I move the clocks down by changing line 33 to:- Dim Integer ctry(2)=(320,480,640), r=80 I now get two lines of clocks not displaying correctly, however, as soon as the hands of the middle row get above a certain point on the screen approximately 480, they display correctly, so now the top half of the clock in the middle row works correctly, but the bottom half does not? Hope this is a useful pointer, let me know if I can do any other testing. Regards, Kevin. |
||||
Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 509 |
Further, If I do a very simple program:- Dim c%=4 Dim x%(3)=(100,150,150,100) Dim y%(3)=(250,250,700,700) Polygon c%, x%(),y%(),RGB(White),RGB(White) I get a wide vertical filled bar, good, until it gets to about y=480 when it turns into an outline only, with extraneous horizontal strips across the whole screen, and down the far left of the screen, makes no difference if Framebuffer is used or not. Regards, Kevin. |
||||
Page 18 of 20 |
Print this page |