Skip to content
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

JavaScript: SPI implementation #272

Merged
merged 8 commits into from
Oct 22, 2024
Merged

Conversation

jamisonderek
Copy link
Contributor

@jamisonderek jamisonderek commented Oct 17, 2024

What's new

  • This adds SPI interface to JavaScript. You can read, write or writeRead data on the SPI bus. writeRead reads data as it writes data, so the output will be the same length as the input. Many chips will ignore any pending commands once Chip Select goes high, so there are acquire and release methods if you want to pull Chip Select low for multiple write/read calls.

This library uses the standard SPI pins (MOSI=pin 2, MISO=pin 3, CS=pin 4, SCK=pin 5) for communication.


For the reviewer

  • I've uploaded the firmware with this patch to a device and verified its functionality
  • I've confirmed the bug to be fixed / feature to be stable

@Willy-JL Willy-JL added the feature New feature or request label Oct 20, 2024
@Willy-JL Willy-JL merged commit 6b9ae09 into Next-Flip:dev Oct 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants