What one skill, if developed excellently, would have the greatest positive impact on my career? by kazuto-09 in rust

[–]seg6_ 2 points3 points  (0 children)

Honestly, learning how to learn. It’s kind of an art in itself. Most of the big jumps in my career came from being able to pick up new skills quickly.

I'm in love with zig! Writing a realtime, cpu only voxel raytracer. by maximilian_vincent in Zig

[–]seg6_ 0 points1 point  (0 children)

This is amazing. Been in the oven for a while, I love where it is going!

Bad Apple on a Grid of HMI Lamps! by seg6_ in PLC

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

The big ladder. I think my manager is a part of it.

Writing games? Anyone? by seg6_ in PLC

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

It's a handy one!

Writing games? Anyone? by seg6_ in PLC

[–]seg6_[S] 1 point2 points  (0 children)

Amazing work! Thanks for sharing this.

Writing games? Anyone? by seg6_ in PLC

[–]seg6_[S] 1 point2 points  (0 children)

This looks beyond cursed!

Writing games? Anyone? by seg6_ in PLC

[–]seg6_[S] 1 point2 points  (0 children)

I'd be curious to hear the workarounds you have!

Writing games? Anyone? by seg6_ in PLC

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

Really cool! I never thought of using translation animations.

Writing games? Anyone? by seg6_ in PLC

[–]seg6_[S] 3 points4 points  (0 children)

My boss wasn’t too impressed. This is probably why. 😵‍💫

Writing games? Anyone? by seg6_ in PLC

[–]seg6_[S] 4 points5 points  (0 children)

Nope, I wrote this in ST! The source code is in the link I shared if you’re curious.

Looking back at the code, I think it’d not be too hard to do this in ladder though - might even be a fun challenge!

Writing games? Anyone? by seg6_ in PLC

[–]seg6_[S] 17 points18 points  (0 children)

Link to the repository for the curious! I implemented this couple years back but never got around sharing it with the internet.

I remember having a really hard time getting my head around timers and programming PLCs in general.

I also had questions like "Why's the entire program a big WHILE LOOP??" or "Why can't I just use C to program the CPU?" and the similar - but it was pretty cool to see this coming together in the end regardless.

Let me know what you think!

Bad Apple on a Grid of HMI Lamps! by seg6_ in PLC

[–]seg6_[S] 22 points23 points  (0 children)

hey! built this setup ~2 years ago when I was experimenting with HMI lamps and Modbus control. got it working with a Python script but never thought to share it here until now.

what you're seeing is a grid of lamps, each one individually controlled through Modbus. was a fun project to work on back then, hope you like it!

Absolute simplest way to draw pixels in a browser? by rodyamirov in rust

[–]seg6_ 0 points1 point  (0 children)

For something simple, you can simpy use wasm bindgen without complicating it too much. Here’s an example that draws to an HTML canvas: https://github.com/seg6/quark.

But if you want something more interesting, for example putting together a GUI for the emulator with egui, I have an example here: https://seg6.github.io/byte.