Has anyone used the serial thing for LED Matrix in C#?
If so would you be able to give me some example commands to display something on the matrix?
Could you give us a link to the thing you’re referring to? Is this the side-panel LED matrix that fits on a FW 16?
yes, on the github docs its all python but i have to code this in c#
https://github.com/FrameworkComputer/inputmodule-rs/tree/main/ledmatrix
Righto. That looks like a Rust project that compiles to a binary. Could you just write a C# script that calls the binary via a shell exec call?
Have you got a working C# compilation/runtime environment on your FW 16?
I have VScode and github, this is for some coursework for my A-Level CS project and i need to use C# but i’m new to it. I can figure most bits out but i need to figure out how to run the commands
Yep, but people won’t do it for you. Breaking down the problem, and doing each piece, is how you learn.
You need to start off with a spec. Consider answering these questions as fulsomely as you can in this thread:
- What action do you want to take to effect a change in the LEDs? (e.g. run a console command, double-click a desktop shortcut, press a keyboard shortcut)
- Are you allowed to use non-C# code? My proposal above was to call the Rust binary from C#, such that C# becomes a small wrapper. Your teacher may not allow that though if they want you to write low-level primitives in C#.
- What kind of activity do you want in the LEDs (light a single cell, draw a line, print a small PNG image, scroll-text)?
Hey, so, somebody from the community actually has done something similar here! It requires a custom firmware (also of their own making), but all of the client side code is written in C# and it’s been designed to be relatively ergonomic to use.
Firmware: sparkle-fw16
C# client code: Starlight.Framework
I mean i can figure out the code side, im just wondering what the command to light up a pixel is, it would be best if its all in C#
Have you used a search engine to search for that thing?
Folks here can help, but in general they will need the hardware you have in order to know what to search for. The approach I take is to experiment: read docs, try a thing, find another doc, try another thing, etc.
@DHowett’s link is probably your best lead so far: clone that repo on your machine, and see if you can get one of the examples working.