cool, so I guess if I add the above in a service then it should work ... I'll test it out.
do you want as a PR for pepper?
I guess, Id still need to include a make_pepper script, just to enable the service?!
is there anyway to tell at runtime if its a salt,pepper, or bela?
this is something that's often needed...
2 scenarios i run into (as i have bela, salt, pepper and minis)
voltage range differences,
i have to scale the float differently. e.g salt = -5,5v peppers is 10v in but 5v out, bela is 5v, 5v
ui differences
salt has 4 buttons/leds, pepper 2 buttons but 10 leds
bela = no ui.
runtime or compile time?
compile time is probably best, since scaling voltages is often done in render loops, so const will be more efficient.
ui, doesnt really matter so much as its out of the render loop.