Forth is fun on the RPi Pico

Demonstration of using Neopixel, SD FAT33, and sound effects etc

Пікірлер: 21

  • @hobomaster6237
    @hobomaster6237 Жыл бұрын

    soo cool

  • @markmanning2921
    @markmanning29219 күн бұрын

    my ARM forth runs on every raspberry PI i ever bought and the beagle board, beagle bone and beagle board black and cubie board. if this is an arm device running Linux it would probably run there too,

  • @guidolehwalder9376
    @guidolehwalder93762 жыл бұрын

    Do you know the pinout/URL for Mecrisp-Stellaris & SDcard for the RP2040-pico without using such a breakout-board?

  • @pbjtech

    @pbjtech

    2 жыл бұрын

    you can use any combinations of pins you like and just specify the 4 pins as 4 bytes in a long passed to SDPINS before mounting. I demonstrated soldering to a microSD adaptor socket and connecting to arbitrary pins with $0A0D0B0C SDPINS MOUNT - The order of bytes is in the form CS SDO SDI SDCK so CS=GP10 SDO=13 SDI=11 SDCK=12 plus there is no need for any pullups either. Besides, the card detect is carried out by sensing the pullup on the CS that is built into every card.

  • @pascaldagornet8338
    @pascaldagornet8338 Жыл бұрын

    Source listing?

  • @romba6
    @romba62 жыл бұрын

    Thankyou, learnt a lot from this and hope you'll do a few more like this on the Pico

  • @pbjtech

    @pbjtech

    2 жыл бұрын

    Have a look at SPLAT - the multichannel logic analyzer that I have running on the Pico. It captures timed or transitional samples and displays them on any ANSI terminal in color. There's also FRED - the Forth Rapid Embedded Development editor that hosts multiple tabbed files and also runs in an ANSI terminal. btw - default baud is 921600.

  • @CharlesdeMAGNEVAL
    @CharlesdeMAGNEVAL2 жыл бұрын

    very intresting, is there a way to get the forth on any pico ?

  • @nigec4969

    @nigec4969

    2 жыл бұрын

    Yes. A .uf2 file. Connect Pico to computer with bootsel button pushed. You will see a USB drive. Copy a Mecrisp-Stellaris.uf2 file for RP2040 file onto Pico. It will reboot into Mecrisp-Stellaris Forth for Pico. I added TACHYON extensions later via Pico booted into Forth and via file transfer. You will need to talk to the PICO via a serial program. Using an FTDI USB adapter. I use TeraTerm.

  • @pbjtech

    @pbjtech

    2 жыл бұрын

    Download the Mecrisp UF2 onto the Pico, fire up a terminal and then send/paste the Tachyon source etc (view the README) - Join Forth2020 on Facebook to find out more or just search for Tachyon Forth.

  • @pyography

    @pyography

    Жыл бұрын

    Just curious, have things made enough progress that this version can use the USB as a serial device? Not a big deal to use a separate usb serial device, just curious.

  • @JonMcPhalen
    @JonMcPhalen Жыл бұрын

    What happened to the P2D2 that so many of us paid for?

  • @IntenseGrid
    @IntenseGrid2 жыл бұрын

    The P2 community misses you.

  • @pbjtech

    @pbjtech

    2 жыл бұрын

    Is there much happening there lately? I thought it was still going around in little circles and developing compilers but no real applications, just demos..

  • @MichaelKingsfordGray
    @MichaelKingsfordGray2 жыл бұрын

    I don't recall Forth looking this cryptic. Where is the stack?

  • @pbjtech

    @pbjtech

    2 жыл бұрын

    You know that you are not supposed to actually see the stack unless you explicitly ask it? Maybe you were using some kiddy version that always shows the stack but with factored code and one or two parameters then very rarely do we need to try and keep track of the stack.

  • @MichaelKingsfordGray

    @MichaelKingsfordGray

    2 жыл бұрын

    @@pbjtech You assumption is so off kilter as to be amusing! I am a professional safety-critical real-time programmer, who wrote my first program for the Army in 1969. I started using Forth in the very early 1980s for safety-critical mining applications. NOT kiddy-code at all. You may not have even been born when I first used Forth, let alone when I began programming.

  • @pbjtech

    @pbjtech

    2 жыл бұрын

    @@MichaelKingsfordGray I don't see any of your content anywhere but you are flying free with vague criticism. Show me what you mean by cryptic or maybe what you consider to be non-cryptic perhaps. You still haven't answered the question I asked by what do you mean "where is the stack?". This is what triggered off my kiddy-code jibe because as you should know we may use the stack, but we don't "see" the stack in source code. It is also better to factor words so that they minimize stack juggling and tracking making them easier to test etc and this also minimizes all that stack notation comments. However you are the one making a great number of assumptions anyway. I, like you started using Forth in the early 80's and designed the hardware and software for POS terminals that had to handle everything from real-time low-level keyboard scanning and printer hammers etc to high level stock and scanning functions and communications etc which resulted in major investments and partnerships with major US and Japanese players. In the 80's I also did safety critical and redundant fail-safe stuff too and even spent time working over in DFW in 90/91. So if you are going to be a critic - be specific and constructive - otherwise what point are you actually making other than blowing your own trumpet? btw, did you not think that anything that was shown wasn't cool? I have implemented FAT32, a logic analyzer, a multitab full screen editor, an ARM macroassembler etc. Not good enough or something?

  • @himselfe

    @himselfe

    Жыл бұрын

    @@pbjtech evidently he's a troll. The code would look immediately familiar to anyone with experience of forth. I realize this comment is 2 months old, but pay little attention to people like this, I enjoyed your video!

  • @TheUnofficialMaker
    @TheUnofficialMaker2 жыл бұрын

    No joy very confusing old stuff!

  • @pbjtech

    @pbjtech

    2 жыл бұрын

    "Ninafurahia kutumia Forth" might sound confusing to many but not to more than 200 million people. The RP2040 and P2 etc are all new new new chips - not old ATMEGA stuff - and nothing comes close to the combination of speed, interactivity and compactness of Forth that is hosted on the tiny chip itself - not on the PC like the bloated compilers and IDEs and libraries that abound.