Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4848

SDK • Re: Acquiring libraries to work with peripherals?

$
0
0
Where in your code in the i2c_init()?
This particular code does not use i2c. That being said, when I start using an i2c peripheral, i2c_init, will likely be called before passing the i2c handle to each peripheral driver. Not sure.
sleep_ms() is already the delay function, correct?
Yes, although if we're sleeping for milliseconds we should yield the current RTOS task until we're ready to do more work, rather than busy-looping.

Statistics: Posted by jags84 — Fri Apr 26, 2024 4:52 am



Viewing all articles
Browse latest Browse all 4848

Trending Articles