hi,
My goal is to connect a general purpose Microcontroller like an Arduino to a board running Klipper and send custom data between them.
I have found the following in the documentation and I have some questions:
SPI Commands¶
spi_transfer oid=%c data=%*s
: This command causes the micro-controller to send ‘data’ to the spi device specified by ‘oid’
- Does this mean Klipper can communicate with any SPI device?
- Just to clarify, I would initialize the SPI interface with
config_spi
and then usespi_transfer
to send data? - Does the printer board need to support SPI on a hardware level and have dedicated SPI pins or can any pin be configured as a SPI output?
- Is there a way to process the returning values as gcode? Let’s say the return message is
X400
orG1 X400
can I route the spi transfer output into a macro?
Thanks!