Why Nostr? What is Njump?
2023-08-10 20:48:35

David Andersen on Nostr: Ok, I know I'm a bit of a #rust fan, but this is really winning me over more. For ...

Ok, I know I'm a bit of a #rust fan, but this is really winning me over more. For startup reasons, wanted to familiarize myself with basic functionality of the rp2040. Used it as an excuse to check out rust async + embedded using Embassy, and .. my goodness, it's delightful. This code snippet waits for the PIR motion sensor to trigger and updates some global state. Simple, but:

It's handling all of the awkward rp2040 interrupt configuration automagically. You just "wait". It does it all. Love!

Author Public Key
npub1rtak3ayg0xry7ps9c4k3809tl3k2fcpvlmyjjtrugmnkmnsz4ths2h9gta