Skip to content

eric15342335/inspirelab-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InspireLab Game

Description

This repository discovers extra potential on the CH32V003 RISC-V Game console. A link to the original repository is below. https://github.com/wagiminator/CH32V003-GameConsole

How to use

Snake Game

  1. Install MounRiver Studio and add the following to PATH:
    • $(your_install_directory)/MounRiver_Studio/toolchain/RISC-V Embedded GCC 12/bin
      • For riscv-none-elf compiler toolchain
    • $(your_install_directory)/MounRiver_Studio/toolchain/Build Tools/bin
      • For make tool
  2. Open terminal in the corresponding game folder (e.g. snakegame)
  3. type make on the terminal to make the executable for CH32V003
  4. flash the hex file into the game console (CH32V003J4M6) using WCH-LinkUtility (Windows only) or todo
  5. Have fun!

Notes:

  • the driver in riscv/include has been modified (compared to original implementation) to allow direct copy from the emulator to run the RISC-V controller
  • buzzer function plays real frequency in Hz

Emulator

  • emulator/include contains a port of the riscv/include libraries which allows code using such libraries to run on desktop platforms for ease of debugging
    • Windows / MacOS are supported
    • See emulator/README.md for more information.
    • Usage: make -f makefile-emulator inside game directory.

Utilities and Tools

  • Contains an python script that faciliates game texture conversion from 128x64 png file to C-array which the OLED monitor accepts

image

Links