Closed antonrez89 closed 3 years ago
связано с configureClock(5, CLOCK_PWM); если убрать эту строку, то у меня все заработало, включая I2C
Hi @antoxxxa-2. Unfortunately this is a limitation of the hardware. Software PWM commandeers some of the registers needed to do audio, and so disables it. This can't be worked around either, so you'll have to pick one or the other. If you really need both, you could look into adding a USB soundcard to the Pi.
thanks for reply, I have already ordered usb sound cart, because in raspberry there is no mic by default.
I have Raspi 2 and do the following steps: 1) start the audio output by
omxplayer -o local demo.mp3
2) start my nodejs app with softPWMonce a softPWM instance created, the audio output stopped and doesn't work (even if js app is stopped too) until reboot.
I think that is related to timers, but what it is exactly i dont know.