Hello,
Sorry to ask a such simple question, but after looking in the forum I couldn't find a suitable answer.
Here is the context :
- I have a TPA2016 amplifier controlled with I2C
- The TPA has a SDZ pin (active low) which reset registers and puts it in very low consumption mode
- Each time I start my program, I want to set SDZ to HIGH so it leaves low consumption mode
- After that, I try to open I2C device
Problem is : all of this happen in setup(), and I need a delay between setting SDZ to HIGH and opening the device, otherwise I get an I/O error.
I know we can achieve this in render() by counting frames relative to sample rate, but I have no point doing this in render as it only happen once.
Is it possible to sleep in setup() for, let's say, 100ms ?
Thanks in advance
Quentin