Files
basic1/emulator
Adolfo Reyna b16211f148 Fix SD card integration and Lua game loading
- Fix SD card MISO pin (was using display MISO instead of SD MISO)
- Add FatFS mounting after SD card initialization
- Restore SPI baudrate on all SD init failure paths
- Add case-insensitive .lua file extension check
- Filter out hidden 8.3 filename entries
- Add SPI speed management functions for shared SPI bus
- Wrap all FatFS operations with SPI speed switching
- Restore display SPI speed (32 MHz) after SD operations
- Add debug output to Lua game loader

This fixes slow display refresh when SD card is present and enables
reliable Lua game loading from SD card /games directory.
2026-02-07 19:31:38 -05:00
..

Emulator for basic1 Game Logic

This folder contains a desktop emulator for the basic1 game, using the same game logic and rendering libraries as the embedded version. The emulator uses SFML for graphics and input, allowing you to test and develop the game on your computer.

Features

  • Uses the same game logic and rendering code as the embedded firmware
  • Emulates touch with mouse clicks
  • Emulates hardware buttons with keyboard keys
  • Runs as a native desktop application (no Pico SDK required)

Build Instructions

  1. Install SFML (https://www.sfml-dev.org/)
  2. Run cmake . && make in this directory
  3. Run ./basic1_emulator

Input Mapping

  • Mouse click: Emulates touch
  • Arrow keys, space, enter: Emulate hardware buttons

Extending

  • Add new features or overlays for debugging
  • Update input mapping as needed

This emulator is independent from the embedded build system.