# MMBasic on Pimoroni and Luckfox Lyra?

**URL:** <https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469>\
**Category:** PicoCalc\
**Created:** [April 2, 2025, 3:37pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469 "2025-04-02T15:37:35Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigitalDreams](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/digitaldreams/32/16007_2.png) [@DigitalDreams](https://forum.clockworkpi.com/u/DigitalDreams)\
**Post date:** [April 2, 2025, 3:37pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/1 "2025-04-02T15:37:35Z")

</div>

Early days I know yet has anyone got PicoMite (with the latest MMBasic) working on the Pimoroni Pico Plus 2 and Luckfox Lyra RK3506G2 ?

The Pimoroni has a larger flash chip and extra 8Mb psram already onboard that both might cause issues. Does the onboard psram add to the psram on the Picocalc main board giving you 16Mb or data copied to both in parallel so still 8Mb ??

The Luckfox should be MUCH faster but of course a completely different processor.

---

<div class="post-metadata">

**Author:** ![white-round-square](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/white-round-square/32/10385_2.png) [@white-round-square](https://forum.clockworkpi.com/u/white-round-square)\
**Post date:** [April 2, 2025, 3:41pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/2 "2025-04-02T15:41:53Z")

</div>

not a basic, but linux on Luckfox Lyra

> [@Luckfox Lyra on PicoCalc](https://forum.clockworkpi.com/t/luckfox-lyra-on-picocalc/16280):
>
> I spent half a day on setting up the buildroot , a whole day on developing lcd and kbd drivers and another whole day on fixing some bugs. Now it runs linux on picocalc. Image for test: If you use the version with spi nand, please erase the spi nand. Otherwise, the board will boot from the spi nand, not the sd card [[Luckfox Lyra on PicoCalc] ](https://www.youtube.com/watch?v=DaVv7h8cKAE)

---

<div class="post-metadata">

**Author:** ![YoelFievelBenAvram](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/yoelfievelbenavram/32/10088_2.png) [@YoelFievelBenAvram](https://forum.clockworkpi.com/u/YoelFievelBenAvram)\
**Post date:** [April 2, 2025, 3:49pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/3 "2025-04-02T15:49:40Z")

</div>

And from there, you can run mmbasic on linux. I’ve been having a bit of fun with it on my uconsole.

---

<div class="post-metadata">

**Author:** ![DigitalDreams](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/digitaldreams/32/16007_2.png) [@DigitalDreams](https://forum.clockworkpi.com/u/DigitalDreams)\
**Post date:** [April 2, 2025, 4:14pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/4 "2025-04-02T16:14:20Z")

</div>

The latest MMBasic runs on that under Linux with no issues ??

---

<div class="post-metadata">

**Author:** ![YoelFievelBenAvram](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/yoelfievelbenavram/32/10088_2.png) [@YoelFievelBenAvram](https://forum.clockworkpi.com/u/YoelFievelBenAvram)\
**Post date:** [April 2, 2025, 4:30pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/5 "2025-04-02T16:30:08Z")

</div>

I’m using @thwill’s build on his github.

> **[GitHub - thwill1000/mmb4l: Port of Geoff Graham's MMBasic interpreter to the...](https://github.com/thwill1000/mmb4l)**
>
> Port of Geoff Graham's MMBasic interpreter to the Linux platform and its derivatives.

You just put the executable where you put your executables and put the nano config files at ~/.mmbasic. I am running it with no problems except one. The controller is properly detected, but the A and B buttons are swapped. This is not intentional due to a ABXY vs. BAYX layout difference as the basic programs archive he posted has a controller test which lays out the controller visually. I haven’t begun to troubleshoot it.

---

<div class="post-metadata">

**Author:** ![thwill](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/thwill/32/9466_2.png) [@thwill](https://forum.clockworkpi.com/u/thwill)\
**Post date:** [April 2, 2025, 5:22pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/6 "2025-04-02T17:22:02Z")

</div>

Amongst other things I guess it depends on whether the Luckfox Lyra has enough oomph to run SDL2.

> … but the A and B buttons are swapped.

Hmm, I checked on my build machine and they seem to be fine there. I don’t have a uConsole but possibly a bad SDL controller mapping ? … though I would have thought you’d have seen that as an issue elsewhere.

Note that the Controller Test utility, like most of the other programs in my MMBasic Game\*Pack, uses OPTION SIMULATE “PicoMiteVGA” to tell MMB4L to pretend it is a PicoMiteVGA driving an attached SNES controller (with its two 8-bit shift-registers) via GPIO … so there is some scope for me to have messed it up.

Best wishes,

Tom

---

<div class="post-metadata">

**Author:** ![adcockm](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/adcockm/32/1664_2.png) [@adcockm](https://forum.clockworkpi.com/u/adcockm)\
**Post date:** [April 2, 2025, 5:58pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/7 "2025-04-02T17:58:45Z")

</div>

I don’t think anyone has tried MMBasic on the Lyra yet. Note that @YoelFievelBenAvram said they have tried it on a uConsole.

---

<div class="post-metadata">

**Author:** ![YoelFievelBenAvram](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/yoelfievelbenavram/32/10088_2.png) [@YoelFievelBenAvram](https://forum.clockworkpi.com/u/YoelFievelBenAvram)\
**Post date:** [April 2, 2025, 11:18pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/8 "2025-04-02T23:18:07Z")

</div>

There was a video of pico 8 running on a luckfox lyra, and that also depends on sdl2, so I imagine it would be more than enough for mmbasic. I set the sdl mapping with a graphical program and it works with everything else. I can export a map with a and b swapped and it fixes the problem. The other programs I use let me set the map in a sdl controllers file, so I just swapped the a and b in .bashrc, and that is an acceptable bandaid.

---

<div class="post-metadata">

**Author:** ![Toml\_12953](https://yyz1.discourse-cdn.com/flex029/user_avatar/forum.clockworkpi.com/toml_12953/32/11925_2.png) [@Toml\_12953](https://forum.clockworkpi.com/u/Toml_12953)\
**Post date:** [June 18, 2025, 9:10pm UTC](https://forum.clockworkpi.com/t/mmbasic-on-pimoroni-and-luckfox-lyra/16469/9 "2025-06-18T21:10:54Z")

</div>

MMBasic on Linux isn’t the latest version (06.00.02 as of this message) It’s comparable to version 5.x
