site banner

Friday Fun Thread for December 23, 2022

Be advised: this thread is not for serious in-depth discussion of weighty topics (we have a link for that), this thread is not for anything Culture War related. This thread is for Fun. You got jokes? Share 'em. You got silly questions? Ask 'em.

4
Jump in the discussion.

No email address required.

I believe there are a number of software devs here. Are there any Linux / C / embedded devs here that would be willing to mentor or offer some signposting for a (near) total beginner on writing what ought to be a simple single function program? By which I don't mean "make a mobile app", I mean "read this one function call from a piece of hardware and print the value to the terminal".

I've gathered a few of the concepts but I don't have enough knowledge to grasp whether they're the right way to approach the matter and whether I'm focusing on the relevant level of abstraction.

Edit: Help is being provided. Thank you Motters.

Are you writing the hardware's driver, or just a userspace program interacting with an existing driver?

I'm definitely not writing a driver, just trying to read (physically read, with my eyes) one value from an existing driver. I've got someone helping me now and fingers crossed I can use an existing library / script that I missed to get me what I need. Looks like I overshot the mark and ended up in the kernel zone.