Discussion about this post

User's avatar
Matt's avatar

Or, in MicroPython, you could use the existing machine.bitstream:

https://docs.micropython.org/en/latest/library/machine.html#machine.bitstream

The Neopixel implementation is built on top of bitstream.

trenton henry's avatar

How does this

pt = pulsetrain.PulseTrain(board.GP0, 2_500_000) # each tick is 0.4 us

get from 2_500_000 to 0.4 usecs?

I must be missing something obvious.

1 more comment...

No posts

Ready for more?