PaHub Access cracked.



  • Yes, I am finially able to access 1 of the channels on the PaHub!

    from m5ui import *
    from uiflow import *
    import i2c_bus
    import unit
    
    setScreenColor(0x222222)
    tof1 = unit.get(unit.TOF, unit.PORTA)
    
    
    
    label1 = M5TextBox(89, 38, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
    label2 = M5TextBox(69, 116, "Text", lcd.FONT_Default,0xFFFFFF, rotate=0)
    
    
    i2c0 = i2c_bus.easyI2C(i2c_bus.PORTA, 0x70)
    while True:
      i2c0.write_u8(0x00, 0x01)
      label2.setText(str(tof1.distance))
      wait_ms(2)
    

    I am using the tof here for this.