These are chat archives for nebrius/raspi-io

17th
Nov 2015
Tiago Alves
@tralves
Nov 17 2015 00:31
@nebrius Hi! You told me to get rid of c++ stuff, right? But I think I should be using WiringPi, so I need to access that stuff. What am I missing?
Tiago Alves
@tralves
Nov 17 2015 01:28
Oh! I should be mapping to the pigpio, not the wiringPi, right?
Tiago Alves
@tralves
Nov 17 2015 01:45
which leads to the next question: why not using the wiringPi?
Tiago Alves
@tralves
Nov 17 2015 03:18
@fivdi I couldn't get pigpio to work either :( fivdi/pigpio#1
Brian Cooke
@fivdi
Nov 17 2015 09:10
@tralves the technique used by wiringPi to emulate PWM is based entirely on software and isn't very reliable. The code can be seen here. This type of code doesn't work very well from user-space on multi-tasking operating systems like Linux. pigpio uses a very different technique based largely on DMA hardware and delivers much better results. For example, with pigpio it's possible to emulate PWM and to control LEDs and servos without flicker and jitter.
@tralves there's a response to issue fivdi/pigpio#1
Tiago Alves
@tralves
Nov 17 2015 11:27
@fivdi Thank you for answering. Reading the docs I saw that WiringPi has much more limitations.
Bryan Hughes
@nebrius
Nov 17 2015 19:58
thanks for the explanation @fivdi. FYI my availability will be spotty for the next week or two. My employer (Rdio) was acquired by Pandora, so a lot of things are up in the air
I’ll try my best though