Giter VIP home page Giter VIP logo

raspberry-pico-waveshare-st7789-physarum's Introduction

Raspberry Pico Waveshare LCD Demo

Physarum Growth

Waveshare 240 x 240 LCD with Joypad + Buttons demo for Raspberry Pico

Waveshare LCD

Extensively modified version of Physarum Cellular Automata by jlswbs for Waveshare 1.3 Inch LCD panel 1 with Joypad and 4 buttons.

Major Changes include :

  • Conversion from Arduino Sketch to Pico SDK/C

  • Conversion from Pico PIO to SPI interface for ST7789 LCD

  • IRQ-driven joypad & keypad routines

  • Framebuffer and DMA transfer for ST7789 LCD

  • USB serial port for menus and Pico Reset if required

This demo extends the original by adding functionality for the 5-way Joypad and 4 buttons on the Waveshare panel.

LCD Display Pin Numbers

Function Waveshare Panel Pin
DC 8
CS 9
CLK 10
DIN 11
RESET 12
BL 13

Joypad Pins and Functions

Pin Joypad Physarum Population Function
2 UP Physarum Growth Count - Increase
18 DOWN Physarum Growth Count - Decrease
16 LEFT Physarum Population Density - Decrease
20 RIGHT Physarum Population Density - Increase
3 CENTRE Restart Physarum Animation

Keypad Pins and Functions

Pin Keypad Physarum Palette Function
15 A Re-Randomise Colours
17 B Decrement Colours
19 X Invert Colours
21 Y Merge Colours

Pre-Built UF2 image here

Footnotes

  1. https://www.waveshare.com/wiki/Pico-LCD-1.3 โ†ฉ

raspberry-pico-waveshare-st7789-physarum's People

Contributors

serialcomms avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.