|
Forum Index : Microcontroller and PC projects : Unix on the Pico Computer 3
| Author | Message | ||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 842 |
Hi Peter, I noticed that you said you have finished what is already there for the feature set, do you think you will be implementing the Math C_... set. ie. MATH C_ADD array1(), array2(), array3() MATH C_SUB array1(), array2(), array3() MATH C_MUL array1(), array2(), array3() MATH C_DIV array1(), array2(), array3() MATH C_AND array1(), array2(), array3() MATH C_OR array1(), array2(), array3() MATH C_XOR array1(), array2(), array3() which I think are quite useful. I've tested the Math slice, that's working fine. Thanks. Kevin. Edited 2026-08-20 08:03 by Bleep |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 713 |
Would it be possible to add wildcards to the FAT LS routine? For Example, I'd like to be able to search for all files that start with the character 4 in the physics directory like this: fat ls physics/4* Right now, all I get is file not found. I do get all files in the physics directory with fat ls physics Edited 2026-08-20 20:31 by toml_12953 |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
I added now a RTC and changed the SD card wiring to PC3 - now it works really reliably. My impression was that with the bitbanged SD card access (in PC2 mode), the jumper cable solution was not reliable - but I am also using shorter wires now. In any case, it now recognises the SD card everytime. One question: It always asks for the bootdev - can this be set to hdb2 by default? HDMI display: 640x480 console, graphics modes 0-5 and 7 devtty: uart as default tty kernel build: Aug 15 2026 19:23:01 clk_sys 375MHz; PSRAM 8192KiB at 0x11000000 FUZIX version 0.5 Copyright (c) 1988-2002 by H.F.Bower, D.Braun, S.Nitschke, H.Peraza Copyright (c) 1997-2001 by Arcady Schekochikhin, Adriano C. R. da Cunha Copyright (c) 2013-2015 Will Sowerbutts <will@sowerbutts.com> Copyright (c) 2014-2025 Alan Cox <alan@etchedpixels.co.uk> Devboot Pico Computer 3, release 0.15 (on FUZIX 0.5) Copyright (c) 2026 Peter Mather 520KiB total RAM, 336KiB available to processes (64 processes max) Enabling interrupts ... ok. NAND flash, 15360kB physical 10274kB logical at 0x14100000: hda: board: PICO COMPUTER 3 SD drive 0: hdb: hdb1 hdb2 hdb3 sound: BBC 4-channel synth on I2S (PCM5102) USB host: keyboard on the hub, layout UK bootdev: Here is a picture of the working minimal setup: ![]() Thanks and best Thomas |
||||
| Mixtel90 Guru Joined: 05/10/2019 Location: United KingdomPosts: 9080 |
The PGA2350 is a bit less than breadboard friendly, isn't it? :) Mick Zilog Inside! nascom.info for Nascom & Gemini Preliminary MMBasic docs & my PCB designs |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
... I just saw that networking is now supported ... I can't keep up. Now I have to add another breakout board to my contraption |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
Yes .... |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11779 |
V0.19 is now available https://github.com/UKTailwind/FUZIX/releases/tag/pc3-v0.19 This has networking support for the PC3 and various internal changes. In addition it has requested items: Boots direct to the login prompt, c_NNN math commands added. FAT commands accept wildcards For breadboard use with the PGA2350 I installed the row of pins with things like USB pointing down and the rest pointing up. That way you can plug it into the breadboard for stability but have access to all the pins Edited 2026-08-22 02:14 by matherp |
||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 842 |
Thanks Peter, I've tried a couple of the Math C_... functions and they seem to be working great, thank you. :-) If you are interested you can now slightly speed up bubble, by using Slice comment out this line ' If Not(g Mod 10) Then n(j)=m(g\10,j)'copy from colour map and add the Slice just below the commented line 'Memory unpack Peek(varaddr m(0,g)),nn,100,32 'unpack pixel colours Array Slice m(),g\10,,n() There is something strange happening with the frame time readout in the top left corner, it almost looks like it's being printed twice at different sizes? Regards Kevin. |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11779 |
Please list the exact program you are testing with |
||||
| Bleep Guru Joined: 09/01/2022 Location: United KingdomPosts: 842 |
Hi Peter, bubble does it. |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
Good idea. |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11779 |
V0.20 is now available https://github.com/UKTailwind/FUZIX/releases/tag/pc3-v0.20 This implements the MMbasic compiler hooks into the web functionality so that now standard MMbasic WebMite functionality is available. To prove this I have tested Geoff's watering controller This means in Fuzix the MMbasic compiler has now been tested with: PicoFrog Petscii Robots Solar_Eclipse Bubble Universe and other graphics demos Reticulation controller Various benchmarks and dozens of test programs for specific functionality We are therefore now in the state that, other than very specific functionality, anything that runs on interpreted MMbasic should run on the compiler subject to nothing more than trivial modifications |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
Thanks for v0.20! One questions: Is there a way to access "/dev/tty2" from MMBasic? Thanks Thomas |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
Never mind - found it. Open "/dev/tty2" For Output As #5 Print #5, "Hello from MMBasic" Close #5 End |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
Hi Peter Transferring files from and to FUZIX is currently awkward - is there a different solution other than serial to be expected? A partition on the SD card that’s is readable and writable from FUSIX? Thanks Thomas |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11779 |
RTFM FAT command |
||||
| toml_12953 Guru Joined: 13/02/2015 Location: United StatesPosts: 713 |
Well, that's half of what he wanted anyway. Any plans to make the FAT partition writable as well? Edited 2026-08-23 23:13 by toml_12953 |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
RTFM FAT command Well, that's half of what he wanted anyway. Any plans to make the FAT partition writable as well? Yes, in both directions - as on the PC |
||||
| karlelch Guru Joined: 30/10/2014 Location: GermanyPosts: 353 |
Fun with processes: test.bas: Dim Integer i Print "text.bas: Starting ..." For i=0 to 9 Open "/tmp/signal.txt" For Output As #5 Print #5, i mod 2 Close #5 Print "test.bas: Updated signal" Pause 2000 Next Print "test.bas: Done" End rec.bas: Dim Integer j, i = -1 Dim String s$ Print "rec.bas: Starting ..." Do Open "/tmp/signal.txt" For Input As #4 Line Input #4, s$ 'Print "rec.bas: `";s$;"`" Close #4 j = Val(Mid$(s$, 2, 1)) if j <> i Then i = j Print "rec.bas: New state (";i;")" EndIf Pause 100 Loop While 1 Output: # ./rec.bc & rec.bas: Starting ... rec.bas: New state ( 1) 180 # ./test.bc & text.bas: Starting ... test.bas: Updated signal rec.bas: New state ( 0) 181 # test.bas: Updated signal rec.bas: New state ( 1) test.bas: Updated signal rec.bas: New state ( 0) test.bas: Updated signal rec.bas: New state ( 1) test.bas: Updated signal rec.bas: New state ( 0) test.bas: Updated signal rec.bas: New state ( 1) test.bas: Updated signal rec.bas: New state ( 0) test.bas: Updated signal rec.bas: New state ( 1) test.bas: Updated signal rec.bas: New state ( 0) test.bas: Updated signal rec.bas: New state ( 1) test.bas: Done |
||||
| matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11779 |
V0.21 is now available https://github.com/UKTailwind/FUZIX/releases/tag/pc3-v0.21 See release notes for changes |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2026 |