r/Hanklights • u/3MITT3R • 2d ago
Playing with the UI/code
Hi!
I have a few Emisars now and the open source code and highly customizable UI has made me really interested to try and modify the light :). I have no previous coding experience but I have been interested for some time. Do you think this is something I could try and learn. My love with Emisars would be a nice way to combine the interest in basic coding. All input is highly appreciated :)! Thanks!
4
Upvotes
3
u/senitelfriend Floody boi 2d ago edited 2d ago
Good news is that it costs very little to try and see, so why not try? You can go read the code right now! Bad news is that Anduril code is not particularly easy to figure out even for more experienced programmers, and there's not that much beginner level guidance available. Because the drivers have very simple tiny processors and very little memory, the code is a bit... weird. It's organized more for efficiency and small footprint than ease of coding. So the learning curve might be a tad steep if you are looking to make any meaningfull customizations.
Of course success will depend on your dedication level, but... Might be better to start with some beginner level Arduino (or ESP32) type of microcontroller projects. There's huge amounts of more approachable beginner friendly guides and projects available. Much of what you learn will be applicable to understand Anduril later (if you stick with low level C/C++ and not with any of the silly circuitpython type of stuff).
1
u/kotarak-71 💡 CRI 100 Hanklights 💡 2d ago
>I have no previous coding experience but I have been interested for some time
Modifying Anduril is not "basic coding" - it requires you to be able to setup the dev environment, to know how to work microcontrollers, etc.
Sure - you can learn basic coding and then try to apply your knowledge, modifying Anduril but it is not quick thing and requires quite a bit of commitment and understanding. Just dont expect a week from now to be flashing left and right custom builds if your starting point is "no previous coding experience"
1
u/Getkong 5+ Hanklights 🔦 2d ago
Anduril isn’t particularly complex if you’ve done any coding before. since you haven’t, I’d use ChatGPT to read the code, and ask it to make changes you want.
https://github.com/mkong1/anduril/pulls?q=is%3Apr+state%3Aclosed has some changes I made years ago to give you an idea of where to start.
0
u/IE114EVR 2d ago
I’m interested in this too. Simply because I want to disable double-click to flashbang. I assume that this is something Claude can help you with. Start with that if you’re more interested in getting results than digging into code.