Hiya! I made this a while ago to help me to select fill patterns and colours when working on other carts. Every time you load the cart, it gives you 16 randomly-generated swatches. I've found this very helpful when figuring out aesthetic details for other projects.
Use the arrows to move the select box around, and the details of the selected swatch will show below. The pattern code is to be used with fillp() and the colour code is to be used anywhere you'd set a color. These numbers would be easier for humans to interpret if they were shown in binary and hex respectively, but I kind of like the layer of mystery tbh.
Hope someone else finds it helpful!
Hiya! Took me a little while to figure out how to read from a GPIO pin on a PocketCHIP, so thought I'd put my example code here in case anybody else comes looking for the same thing I was. It's not actually very complicated, but maybe the code and the notes will save someone some time.
This example uses GPIO 6 - to use a different pin, just change the pin value accordingly e.g. GPIO 5 would be 0x5f86.
Pico-8 reads hardware pins as digital, so you're not going to get a value from them other than 0 or 255. In this example I've called these two values "on" and "off".
You might need to run Pico-8 as root by opening Terminal from the PocketCHIP home screen and typing "sudo pico8".
This example won't do anything in browser.
My first post here! Thanks to everyone who posts here, I have learned so much from you.
This is a little graphics thing I made on the PocketCHIP while trying to get to grips with cellular automata.
Use arrows while holding one of the action buttons to change palettes, display modes, or regenerate a new pattern. Use arrows while holding the other action button to smear the patterns into stripes.
Memory poke trick to create reflections
Modification of Conway's Game of Life from Pico-8 zine issue 2