Skip to content

Conversation

@kolod
Copy link
Contributor

@kolod kolod commented Jul 29, 2025

Add support for transfer16 method to SPI class in ArduinoFake

Summary

This pull request adds support for the transfer16 method to the SPI class in the ArduinoFake library, enabling 16-bit SPI data transfers for improved compatibility with Arduino code.

Details

  • Implemented the transfer16(uint16_t) method in the SPI and SPIFake classes.
  • Updated headers and source files to declare and define the new method.
  • Extended unit tests to verify correct behavior of transfer16.
  • Ensured compatibility with existing SPI functionality and mocks.

Motivation

Many Arduino libraries and sketches rely on SPI.transfer16() for 16-bit data communication. Adding this method to ArduinoFake allows users to test and simulate such code without hardware, increasing the utility and completeness of the library.


Thank you for reviewing this contribution!

@kolod kolod changed the title Spi transfer16 Add SPI transfer16 method Jul 29, 2025
Copy link
Owner

@FabioBatSilva FabioBatSilva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Thank you !!!

@FabioBatSilva FabioBatSilva merged commit b4fe9a0 into FabioBatSilva:master Jul 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants