日志

wiringpi ads1115Setup pinbase

发表于 2024-01-22 zhangxinwei
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
加入收藏

会员评论登录

评论


汉字公式

我的作品

其他媒体

关于汉字公式

回到首页

后台数据库查询耗时: 2158 微秒

@2015-2023 最精简的解释,来自于自然、来自于生活

豫ICP备2023033703号-1