GPIO how to article
Hi,
We've created an article about the GPIO board, complete with examples. We'll be adding more examples to the article in the future.
If you have any questions, feel free to ask them here or in the comments section of the article.
We look forward to seeing your GPIO-based projects!
Happy printing and hacking!
/ Knowledge Base
The guy behind Prusa assembly manuals...
RE:
In the article, it doesn't mention M260 or M261 (despite being in the screencaps), but those are both now supported in the firmware, thanks to rbuehlma's github contributions. Does the GPIO board not support those commands? Is it possible to use a separate microcontroller, configured as i2c slave, to receive those commands?
RE:
Hi,
After the initial feedback and subsequent internal discussion, we have decided not to directly mention the M260 gcode in the article, although it is still supported by both the firmware and the board. Instead, we prefer to use a more straightforward setup for individual pins using the M264 gcode.
The M261 gcode is described in the article.
At this moment, I am not aware of the possibility to connect a separate microcontroller as an I2C slave, and I do not recommend it either. However, the GPIO hackerboard supports these M260 and M261 gcode commands.
RE: GPIO how to article
Thanks for replying! I must have missed the M261. Sorry about that. Can you explain the reasoning for not mentioning/documenting M260? I'm guessing to limit the liability for someone doing something dumb with that command.
RE: GPIO how to article
Thanks for this! Ordered my board and now I have to wait for it to show up... 🙂
Could you perhaps add an example of how to wire a button to input on the hacker board to control an output pin? Is this possible? Would like to do this to control some enclosure lights/fans via button.
Hi,
We've created an article about the GPIO board, complete with examples. We'll be adding more examples to the article in the future.
If you have any questions, feel free to ask them here or in the comments section of the article.
We look forward to seeing your GPIO-based projects!
Happy printing and hacking!
MK3s / My IKEA Lack enclosure
RE: GPIO how to article
The gcodes M262-M268 get me echo:Unknown command:
Prusa support told me those codes M262 and M268 are not listed among the compatible codes. https://help.prusa3d.com/article/buddy-firmware-specific-g-code-commands_633112
So, how are you using gpio without them?
RE: GPIO how to article
You need firmware 6.2.0-alpha1 or newer.
See my GitHub and printables.com for some 3d stuff that you may like.
RE: GPIO how to article
M262 sets the pin mode to input or output
M262 P6 B0 - Configures pin 6 as an output pin
M268 reads the registers of the IO device
RE: GPIO how to article
So basically Prusa is selling unsupported hardware because the latest officially supported version is 6.1.4