@CadeJohnson@aral@staff Were any of those accounts confirmed to be legit? Between fraudsters and AI, you have to think ten times before donating to anyone these days. I completely agree with the point about this being akin to a zero sum game. There are trucks full of aid waiting at the border, so this famine is being deliberately manufactured. That creates a terrible ethical dilemma for each of us. Donating might save one person, but there's a clear nefarious outcome: the money gets diverted to smugglers and criminals. Itโs a horrible thing to say, but it feels like you're being forced to choose who lives and who dies, all while funding the very people profiting from the crisis. Do the posts I see break my heart? Fuck yes. But should we be answering these calls for help with money? I'm just not sure. I pretty much despise effective altruism and believe individual people matter, but when all you have is a social media post... it feels like an impossible choice.
I wrote some ST7789 screen driver Rust code which just takes bytes from memory and flushes them into the screen. It seems to work but somehow the screen turns completely white less than one second after the memory write operation. This used to work fine, so I was wondering if maybe some other driver was interfering with the SPI, but nope, I disabled everything else and it still does that. I wrote a small test program which uses a different library to speak to the ST, and it works just fine. I am probably doing something wrong somewhere, BUT THEN WHY WAS IT WORKING OK BEFORE? I suspect some weird timing issues. Or maybe my driver code is being optimized by the compiler somehow, and things are not being done in the correct order?
I will probably plug in a logic analyzer tomorrow, but if anyone has any tips on how to debug it...
@bino so, I hooked up the logic analyzer and suddenly the whole thing started working. I narrowed it down to the screen's RST pin. If I leave it connected to the analyzer, it works. If I disconnect it, the whole thing turns white. I thought maybe some pull-up/pull-down effect might be going on, but this is just an output pin...
@bino OH, I FOUND THE PROBLEM. I think this had already bit me in the ass once. Basically, in the framework I'm using (Embassy), whenever a pin structure is dropped (not sure if you're familiar with Rust, but that's when it goes out of scope), it resets the pin's config. I stored the pin in a parent struct, to make sure it stays in scope, and it now just works. So much time wasted trying to figure this one out... Anyway, thanks for your help!
Working on Open Source Software. Software Engineer ๐จ๐ป๐ป, DIY enthusiast ๐ง.I like machines which make noise ๐.Tambรฉm tweeto em portuguรชs ๐ต๐น. A volte anche in italiano ๐ฎ๐น.#eurorack #electronics #rust #rustlang #synth #fedi22