not pretty, but it works to re-sync the gpio (bitbanged) SPI from the BPI-CM4 module to the reform motherboard's controller
Conversation
Notices
-
minute (mntmn@mastodon.social)'s status on Tuesday, 25-Jul-2023 05:51:59 JST minute -
minute (mntmn@mastodon.social)'s status on Tuesday, 25-Jul-2023 05:52:58 JST minute i realize that this code snippet might be confusing; the main part of it is just for some debug output. what i'm doing is just resetting the SPI interface if i get data, but it looks like garbage
-
minute (mntmn@mastodon.social)'s status on Tuesday, 25-Jul-2023 05:55:53 JST minute watching the 8 LiFePO4 cells charge over SPI
-
minute (mntmn@mastodon.social)'s status on Tuesday, 25-Jul-2023 06:16:43 JST minute @lina oh i know :D
-
lina (lina@uwu.social)'s status on Tuesday, 25-Jul-2023 06:16:44 JST lina @mntmn btw you can lower the refresh rate to 0.1 seconds, just so it will almost instantly show that it's charging the cells, it's just cooler this way I think xddd
-
minute (mntmn@mastodon.social)'s status on Tuesday, 25-Jul-2023 06:17:08 JST minute @tommythorn hmm true
-
Tommy Thorn (tommythorn@chaos.social)'s status on Tuesday, 25-Jul-2023 06:17:09 JST Tommy Thorn @mntmn This practically begs for a graph display.
-
Ben Zanin (gnomon@mastodon.social)'s status on Tuesday, 25-Jul-2023 10:02:14 JST Ben Zanin @mntmn that is adorable, those little cells are just doing their very best
-