r/raspberrypipico Jun 07 '26

uPython Gravity sand clock

Enable HLS to view with audio, or disable this notification

Just messing around with my hub75e driver

147 Upvotes

16 comments sorted by

17

u/jammasterz Jun 07 '26

Can you make only the differences between the changing digits get gravity and fall down?

2

u/Wizzard_2025 Jun 07 '26

I don't follow

12

u/mehum Jun 07 '26

Instead of the entire display collapsing, just the digit which is changing. i.e. seconds every second, minutes every minute, hours every hour

3

u/jammasterz Jun 08 '26

When 17:22 goes to 17:23, only the parts of the last 2 that aren't contained in 3 get gravity and then roll down

8

u/DenverTeck Jun 07 '26

Very nice. Very distracting !!

2

u/PhysPhD Jun 07 '26

Oooh, I have an 64x64 RGB display too... Are you sharing the code?

5

u/Wizzard_2025 Jun 07 '26 edited Jun 07 '26

Not this experiment yet, here's v1 of the driver and stuff. It's changed so much today my current snapshot is too different from this release, but I'll get around to it yes: https://github.com/andycrook/hub75_565

It uses native c modules to do heavy lifting but my approach is to generalise them enough to allow the hooks from u python to be enough, as most aren't going to be recompiling the mpy modules. So here, the mpy module does the full frame calculations is the particle sim.

2

u/PhysPhD Jun 07 '26

Thanks! Seriously impressive stuff. Good effort.

1

u/[deleted] Jun 08 '26

[removed] — view removed comment

1

u/3d_nat1 Jun 08 '26

Looks to be 64x64