AnalogtoDigital库将模拟引脚A0-A3转换为数字引脚,不包括I2C引脚A4和A5引脚A0 = 14引脚A1 = 15引脚A2 = 16引脚A3 = 17引脚A4 = 18-> I2C SDA引脚A5 = 19-> I2C SCL
Convert_All()->转换所有引脚(A0-14,A1-15,A2-16,A3-17)Select_Pin()->选择引脚进行转换(0/1 / 14、0 / 1 / 15、0 / 1/16,0/1/17)0-模拟/ 1-数字/ 14-15-16-17-数字N_Pins()->要转换的引脚数(1-4)
2022-10-23 21:38:43
3KB
C++
1