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

SPI DMA / STM32 Neopixel output #1212

Open
gfwilliams opened this issue Aug 7, 2017 · 1 comment
Open

SPI DMA / STM32 Neopixel output #1212

gfwilliams opened this issue Aug 7, 2017 · 1 comment

Comments

@gfwilliams
Copy link
Member

gfwilliams commented Aug 7, 2017

Previously we disabled IRQs during the Neopixel sending, but that could cause lost serial data.

Now, re-enabling them might cause glitches - although less likely now that all data to be sent is in one big, flat buffer.

Need to check this (for 1v94) and potentially move to a DMA-based SPI send if needed.

@gfwilliams
Copy link
Member Author

Best solution would be to use DMA for SPI with an optional callback (to allow async transmission). Larger strips of lights could have the bit patterns generated as needed.

Ideally a jshSPISend with a buffer, as per #695

And then hopefully this could even be exposed as an SPI.writeAsync for http://forum.espruino.com/conversations/257857

@gfwilliams gfwilliams changed the title STM32 Neopixel output SPI DMA / STM32 Neopixel output Jan 24, 2018
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

No branches or pull requests

1 participant