Skip to content

Advice to start developing a plugin #33

Answered by terjeio
mfp20 asked this question in Q&A
Discussion options

You must be logged in to vote

If you want it to be flexible you may encapsulate the data transfers as auxillary I/O and write a plugin on top of that. There are several plugins that claims auxillary I/O ports and provide a set of M-codes to control them: fans, OpenPNP and laser coolant are among them.

Auxillary I/O is supported by many drivers, typically the code is found in a file named ioports.c, there is also a template available.

Of course you may put everything in the same file and not bother to write auxillary I/O support code, but if you do you get both a standard API and M-codes to handle the extra I/O without any additional coding effort.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mfp20
Comment options

@terjeio
Comment options

@mfp20
Comment options

Answer selected by mfp20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants