Skip to content
Snippets Groups Projects

Modified the scripts to run on Raspberry Pi.

1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
+ 3
3
@@ -37,13 +37,13 @@ def rw_eeprom(value=0xAB):
def front_led(value=0xFF, ADDRESS=0x71):
main_switch = I2C(ADDRESS)
main_switch.bus = I2CBUSNR
main_switch.write_pointer(0x20) #select LED
ret_ack = main_switch.write_pointer(0x20) #select LED
if ret_ack < 1:
print("Main I2C switch not found")
else:
front = I2C(ADDRESS=0x41)
front.bus = I2CBUSNR
front.write_bytes(0x03, 0)
ret_ack = front.write_bytes(0x03, 0)
if ret_ack < 1:
print("Front LED driver not found")
else:
@@ -136,7 +136,7 @@ def read_qsfp(node_nr = 0, module=0):
stri = "Voltage QSFP in slot {0} node {1} is {2:3.2f} V".format(module, node_nr, Power_in_mod)
print(stri)
if 0:
if 1:
rw_eeprom(0xCD)
else:
front_led()
Loading