This commit is contained in:
PJB123456
2023-06-12 17:33:54 +08:00
parent ce4f5e7994
commit ea50c6f954
135 changed files with 8767 additions and 10 deletions
@@ -10,7 +10,8 @@ class ADCDevice {
public int cmd = 0;
public I2C i2c;
public ADCDevice() {
i2c = new I2C(I2C.list()[0]);
//Note that if you are running on a version 1 Raspberry Pi, you need to change the subscript index to 0.
i2c = new I2C(I2C.list()[1]);
}
public boolean detectI2C(int addr) {
@@ -10,7 +10,8 @@ class ADCDevice {
public int cmd = 0;
public I2C i2c;
public ADCDevice() {
i2c = new I2C(I2C.list()[0]);
//Note that if you are running on a version 1 Raspberry Pi, you need to change the subscript index to 0.
i2c = new I2C(I2C.list()[1]);
}
public boolean detectI2C(int addr) {
@@ -10,7 +10,8 @@ class ADCDevice {
public int cmd = 0;
public I2C i2c;
public ADCDevice() {
i2c = new I2C(I2C.list()[0]);
//Note that if you are running on a version 1 Raspberry Pi, you need to change the subscript index to 0.
i2c = new I2C(I2C.list()[1]);
}
public boolean detectI2C(int addr) {