Skip to main content
1 of 2
joan
  • 71.7k
  • 5
  • 74
  • 107

There are various debug steps you can take.

  1. bit bang on the hardware I2C GPIO. If it works for SMBus then it should work with bit bang. It eliminates wiring and the pull-ups being a problem.
  2. use pigs to implement the code. If that works that would suggest the Python module is faulty. pigs bi2co 4 17 9600 then pigs bi2cz 4 4 0x68 2 6 7 3 0
  3. Switch on internal pigpio daemon debugging and try to trace the Python execution. pigs csi 4 then cat /dev/pigerr& to see the trace.

In this case I suspect 1. will work as I expect the weak (50k) internal pulls are not good enough for the I2C bus.

joan
  • 71.7k
  • 5
  • 74
  • 107