Hardware Reference
In-Depth Information
Discussion
It takes a little more code than Python, but it works, and it can be fast. Try uncommenting
libsoc_set_debug(0)
and commenting-out the
usleep
s to see how fast it can go. I
measured a 6 μs period without the sleeps.
The
test folder on GitHub
has some good sample code that shows how to set up callback to
respond to changes in an input pin's value,
i2c
,
pwm
,
spi
, and more.
1
Figure 5-4
was originally posted by Jason Kridner at
http://beagleboard.org/media
under