Skip to content
Snippets Groups Projects

Modified the scripts to run on Raspberry Pi.

2 files
+ 9
9
Compare changes
  • Side-by-side
  • Inline

Files

+ 1
2
@@ -41,8 +41,7 @@ def Read_byte_ADC(ADC_reg_address, ADC_bytes=0, ADC_NR = 0, ADDRESS=0x20 ):
#
# Read Byte from the ADC
#
I2C_device = I2C(ADDRESS)
I2C_device.bus = I2CBUSNR
I2C_device = I2C(ADDRESS, , BUSNR=I2CBUSNR)
ADC_rw = 0x01 # 0 for write, 1 for read
stri = "Read ADC from Address {:8x}".format(ADC_reg_address)
Loading