Skip to content
Snippets Groups Projects

Modified the scripts to run on Raspberry Pi.

2 files
+ 6
10
Compare changes
  • Side-by-side
  • Inline

Files

+ 2
3
@@ -23,7 +23,7 @@ if os.name =="posix":
else:
from I2C_serial import *
I2CBUSNR=1
I2CBUSNR=3
sleep_time=0.05
READ_LOCK = True
@@ -37,8 +37,7 @@ def Read_byte_PLL(reg_address, nof_bytes=1, ADDRESS=0x20 ):
#
# Read Byte from the ADC
#
I2C_device = I2C(ADDRESS)
I2C_device.bus = I2CBUSNR
I2C_device = I2C(ADDRESS, BUSNR=I2CBUSNR)
PLL_rw = 0x01 # 0 for write, 1 for read
I2C_device.write_bytes(0x06, 0x2C)
Loading