-
-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide generic output device for custom hardware integration #331
Comments
A fixed number of pins, or better variable number of pins, should be possible to define. If e.g. a Display is connected which requires pins these must be marked as used to avoid double using. |
Beside the pins which could be defined it would also be helpfull to define a string within the configuration dialog which could be used for intialisation parameters of the decice. |
One more idea while looking in my motorized axis code. The custom device might also require existing devices. So within the custom device another existing device should be added. The required pin(s) could be defined via the pin defintion, the name and other init parameters via a string. As an example on a board 3 steppers are connected. The 1st and 3rd stepper is defined as always and the position is set b the connector. The 2nd stepper is initialized through the custom device. When setting a new value to the custom device, the custom device has to know that the 2nd has to get a new setpoint. /edit: This would mean that avery (most?) |
An |
that would be required for inputs typically, but do we need that for displays? yeah maybe. |
I am not only thinking about displays as custom devices, there could be also other devices which might require also an input. |
I wrote above:
It is correct that the command messenger buffer must not be exceeded. But defined pins are part of the initialisation and must not be considered in the payload. So it could keep the same as for the LCD. |
@MobiFlight-Admin @neilenns @GioCC and all. |
Please tell me if I got it right: the other device referenced by the custom device should be specified by the user via the parameters entered in the connector. But how does the user know (or how can he quickly read) what is the index of the required device? |
A user can define a custom device and send data via the serial connection to the MobiFlight firmware. It doesn´t matter to mobiflight what happens with the data but allows for more flexibility for custom hardware.
Confirmations:
Optional:
The text was updated successfully, but these errors were encountered: