wiringpi ads1115Setup pinbase
ads1115Setup(100, 0x48);
https://raspberrypi.stackexchange.com/questions/83525/what-does-pin-base-mean-in-wiringpi-library
A good example is that of a shift register. For example, an MCP3008 has eight output pins. So you normally have access to the standard GPIO via their number. To access the eight additional shiftreg pins, you give it a "pin base" of say 100. Now using the normal wiringPi functions, you can enable/disable the sr pins just like normal GPIO pins by referencing them as pins 100-107.
标签:raspi
加入收藏