#Addressing pins on a toolboard
24 messages · Page 1 of 1 (latest)
I believe you need to add the prefix of toolboard like on this line https://github.com/Rat-OS/RatOS-configuration/blob/v2.x/templates/v-core-3-printer.template.cfg#L291
Is there a list of pin names for the various toolboards? Or can I just say !toolboard:PB5?
your toolboard should have a pinout and that should tell you the name to use
It just calls it PB5 as far as I can tell.
You don't need the ! unless you need to invert the switch logic
Ok I found the pin definitions file in ratos so I can add PB5 to it and assign it a name in my printer.cfg file
nono
You only make changes in your printer.cfg
Don't override pin definitions, there's no point
Just do toolboard:PB5
The above will only fail if that pin is used for something else
Ie, there's never a reason to change the pin aliases, or try and use the aliases themselves if you don't know if one exists.
Just use the pin from your boards pinout diagram 🙂
This is described in the docs btw: https://os.ratrig.com/docs/configuration/includes-and-overrides/#overriding-pins
Got it thank you!
I tried to create my own alias at first and it wasn't happy lol. toolboard:PB5 worked.
Is there a way to get the state of the switch on PB5 in mainsail terminal now that I have it assigned just to see if it's working as expected without actually running a print?
Unfortunately i don't think so, no.
could he define it as an endstop temporarily and then use the machine tab to see what state it is in like when testing other endstops?
Yeah that could work
Or a filament switch sensor
That's prolly better
That shows realtime feedback right on the mainsail dashboard