Daniel Dulaney
Daniel Dulaney
For what it's worth, Windows has an analogous [`PurgeComm`](https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-purgecomm?redirectedfrom=MSDN) method. I'd be happy to take on the Windows implementation if there was consensus on the broader API.
After taking a look at both `tcflush` and `PurgeComm`, it looks like it's plausible to encapsulate them both inside a `SerialPort::purge(&mut self, queue: Queue)` method. `Queue` could be an enum...
One thing that might be a good design goal for an Inky-specific crate would be to provide pre-configured LUTs and pins for the common use-case of sticking a board on...
Also, to add to the list: newer revisions of the Inky pHat also use the SSD1608 controller, which is related but requires a slightly different setup sequence, as well as...
I think that's correct. I don't know of any way to explicitly mark a type as !Sized, but the goal is that it should only be accessible through a pointer....
Also, the example uses mem_swap and I think that's the main issue. mem_replace should be fine because you need a raw Sid (not behind a pointer) to call it, and...
You've made one of the classic blunders: confused Java and Javascript. Despite the similar names, these languages have nothing to do with each other. `npm` (and nodejs, etc.) are all...
Sorry, I don't have an RPi in front of me, but I'm happy to help out in general. You'll need to install a Java Runtime Environment (JRE), which has the...
I ran into a slight variation and found a different workaround. I'm doing some (fairly sketchy) metaprogramming with `dataclasses.fields()`: ```python import dataclasses from typing import Any def create_any_dataclass[T](ty: type[T]) ->...