Skip to content

A game demo for the Pimoroni Picosystem

License

Notifications You must be signed in to change notification settings

JeremyGrosser/the_grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Work in progress game demo for the Pimoroni Picosystem. Don't expect this to do much right now.

Dependencies

These are built and managed by Alire.

Resources

I use GIMP to create 8-bit 8x8 grayscale bitmaps, which are transformed by res/make_resources.py into 2-bit ELF objects and statically linked into libresources.a. Those symbols are imported by src/bitmaps.ads.

You need a arm-eabi-objcopy and arm-eabi-ar in your PATH and the Python Pillow Library (python3-pil) installed to run make_resources.

cd res
python3 make_resources.py
cd ..

Compile

Depends on Alire

alr build

Install

If you don't have a SWD debugger connected to your Picosystem, you can generate a .uf2 binary that can be loaded over USB by holding the X button while plugging it in. elf2uf2 comes from pico-sdk and needs to be in your PATH.

elf2uf2 bin/main bin/main.uf2