Skip to content

Instantly share code, notes, and snippets.

@danglingptr0x0
danglingptr0x0 / constr.md
Last active February 1, 2026 22:19
Olimex GateMateA1-EVB SPI constraints

I've spent nearly two days trying to figure out how to wire up SPI from an STM32 to this GateMateA1 dev board, unable to find the associations between schematic pins and physical pins. I tried Pmod1, BANK_MISC1, then Pmod1 again, after which I moved to BANK_NB1 just because I saw the voltage selector jumpers. I found out that the leftmost pins (when looking at the board with the silkscreen text in the natural, readable orientation) are V (bottom) and GND (top), V being the voltage that's selected using the jumper (I picked the max value, 2V5, since the STM32 operates at 3V3, and placed a 1k resistor in series with each of the four SPI pins). I figured the rest was bidirectional GPIO. after that, it took me quite a while to correctly set up my constraints such that they matched the actual pins that I picked. I couldn't find any (at all) SPI setup resources for this board, so I decided to share mine:

Pin_in  "spi_sck"  Loc = "IO_NB_B0";  # top pos 2 <- STM32 PA5 (D13)
Pin_in  "spi_cs_n" Loc = "IO_
@danglingptr0x0
danglingptr0x0 / config.jsonc
Last active September 11, 2025 06:55
Sway && waybar Twitch streamer watcher
...
"modules-right": [
"custom/streamer",
...
],
"custom/streamer" : {
"exec": "~/.config/waybar/streamer.sh",
"return-type": "json",
I've watched 239 movies and 4662 episodes of 69 shows.
My favorite 3 genres are:
action ███▏░░░░░░░░░░░░░░░░░ 15.4%
adventure ███▏░░░░░░░░░░░░░░░░░ 15.1%
science-fiction ██▋░░░░░░░░░░░░░░░░░░ 13.0%
Damned Anthem ████▍░░░░░░░░░░░░ 38 plays
Hollywood Undead ██░░░░░░░░░░░░░░░ 18 plays
Eminem █▋░░░░░░░░░░░░░░░ 14 plays
Ongakken █▋░░░░░░░░░░░░░░░ 14 plays
Sido █▋░░░░░░░░░░░░░░░ 14 plays
David Guetta █▍░░░░░░░░░░░░░░░ 12 plays
Richter █▎░░░░░░░░░░░░░░░ 11 plays
Really Slow Motion █░░░░░░░░░░░░░░░░ 9 plays
Crash Adams ▉░░░░░░░░░░░░░░░░ 8 plays
Falling in Reverse ▉░░░░░░░░░░░░░░░░ 8 plays
We couldn’t find that file to show.
We couldn’t find that file to show.
@danglingptr0x0
danglingptr0x0 / Powered by Neko-Box!
Last active December 13, 2025 11:02
Watched anime - AniList Activity - 4 years ago...
fluffy1011 completed all of...
Koukaku Kidoutai: SAC_2045
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
📢 0 | 💖 0
⏰ Stats for October 8th 2022
Productivity Pulse 4h 34m ████▍░░░░░ 44%
All Productive 54m 50s ██░░░░░░░░ 20%
All Distracting 1h 12m ██▋░░░░░░░ 27%
Neutral 2h 26m █████▎░░░░ 53%