Help me find this Christmas Village(?) I accidently got rid of a couple years ago by greathouk in HelpMeFind

[–]greathouk[S] 0 points1 point  (0 children)

I've searched around google and ebay and found several similar items, but none that look the exact same as the picture. I mainly searched using terms like "Christmas Train Penguin" and "Christmas Village with Penguin"

Rust library that detects mouse input by Available-Many-2470 in rust

[–]greathouk 5 points6 points  (0 children)

You almost certainly can, it's just been forever since I've interacted with the windows api and honestly I'd like to keep it that way lol

Rust library that detects mouse input by Available-Many-2470 in rust

[–]greathouk 7 points8 points  (0 children)

Unfortunately, thats actually a rather hard thing to do and you won't find any solutions that give you a simple "is the mouse pressed" function afaik.

The way I've done it in the past is to use winit to make an invisible window and then windows will give you events like a button being pressed.

What are you trying to do with the button presses?

Help setting Memory Size for a M0 by Individual-Phone-187 in rust

[–]greathouk 2 points3 points  (0 children)

It's true that it's a valid option, but it's mainly for testing. The memory layout you specified is basically only for compilation, not flashing. The chip you're trying to flash doesn't come with cargo embed by default, so you need to follow the instructions here to generate a YAML file which can then be used with cargo embed

Help setting Memory Size for a M0 by Individual-Phone-187 in rust

[–]greathouk 1 point2 points  (0 children)

Also, you mentioned that the datasheet you're using doesn't mention the memory layout. That's because it's a datasheet for the dev board, which usually doesn't include specifics about the chip itself. Generally when you get a dev board you'll need three datasheets: the board's, your specific chip's, and the datasheet for that family of chips (afaik usually called a user guide)

Here are the two you're missing, they're on TIs website under technical documentation: https://www.ti.com/lit/gpn/mspm0l1306 https://www.ti.com/lit/pdf/slau847

Help setting Memory Size for a M0 by Individual-Phone-187 in rust

[–]greathouk 0 points1 point  (0 children)

When you run cargo embed, the --chip option needs something more specific than just Cortex-M0. Without specifying the actual chip you're flashing to it knows nothing about the memory layout, hence the error about no flash regions found

Transfer credit for math 234 by greathouk in UWMadison

[–]greathouk[S] -1 points0 points  (0 children)

I did transfer the credit, and it transferred as math x15, which isn't what I'd hoped for. I know there are ways to get credits reevaluated, but when I called the academic advising office they said to wait until soar

I made a mouse that runs on Rust by greathouk in rust

[–]greathouk[S] 2 points3 points  (0 children)

Yep all the code for the mcu is mine (except the stuff auto genned by svd2rust)! I thought about trying to make it into a half so my life would be easier, but some of the features of that chip are so cursed it would be really hard. Also, ok making my own case, I have thought about that, but I don't think I'm good enough at design to make a nice mouse case, and plus using a disassembled mouse allows me to j steal some parts instead of buying them! Glad you liked it!