MCPcopy Index your code
hub / github.com/Nicholas-L-Johnson/flip-card

github.com/Nicholas-L-Johnson/flip-card @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
44 symbols 70 edges 4 files 9 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

This repo contains all files related to the flip-card project, which is a business card that runs a fluid-implicit-particle(FLIP) simulation.

alt text

The PCB design files are in the "kicad-pcb" folder. The flip-card project is inspired by mitxela's fluid simulation pendant project https://mitxela.com/projects/fluid-pendant

The fluid simulation logic is contained in a standalone crate, which is in the "fluid_sim_crate" folder. This is based off the work by Matthias Müller (https://github.com/matthias-research) and his excelent demonstrations on his youtube channel "Ten Minute Physics"

One of the more difficult features was the rechargable battery. I found a design for a board edge usb-c port from cnlohr's tiny touch lcd project https://github.com/cnlohr/ch32v003_3digit_lcd_usb/

alt text

a WASM simulator is also provided in the "sim_display" folder, which is what I use to debug issues in the simulation.

The implementation for the fluid simulation on the rp2350 is in the "flip-card_firmware" file

further details can be found in each folder's README files, see flashing instructions in the flip-card_firmware subfolder

alt text

alt text

Core symbols most depended-on inside this repo

clamp
called by 10
fluid_sim_crate/src/lib.rs
make_rectangle
called by 4
sim_display/src/main.rs
pushParticlesApart
called by 2
fluid_sim_crate/src/lib.rs
handleParticleCollisions
called by 2
fluid_sim_crate/src/lib.rs
transferVelocities
called by 2
fluid_sim_crate/src/lib.rs
simulate
called by 2
fluid_sim_crate/src/lib.rs
particle_add
called by 2
fluid_sim_crate/src/lib.rs
set_gravity
called by 2
fluid_sim_crate/src/lib.rs

Shape

Method 28
Function 11
Class 4
Enum 1

Languages

Rust100%

Modules by API surface

fluid_sim_crate/src/lib.rs22 symbols
flip-card_firmware/src/main.rs12 symbols
sim_display/src/main.rs9 symbols
flip-card_firmware/build.rs1 symbols

For agents

$ claude mcp add flip-card \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact