The callbacks are calling the class and not the instance of the class.
Wrong:This should work:Then the count of arguments should be right.
Wrong:
Code:
self.pio.callback(rc,pigpio.EITHER_EDGE,inout.RightAct) self.pio.callback(ro,pigpio.EITHER_EDGE,inout.RightAct) self.pio.callback(lc,pigpio.EITHER_EDGE,inout.LeftAct) self.pio.callback(lo,pigpio.EITHER_EDGE,inout.LeftAct) self.pio.callback(lid,pigpio.EITHER_EDGE,inout.LidAct)
Code:
self.pio.callback(rc,pigpio.EITHER_EDGE,self.RightAct) self.pio.callback(ro,pigpio.EITHER_EDGE,self.RightAct) self.pio.callback(lc,pigpio.EITHER_EDGE,self.LeftAct) self.pio.callback(lo,pigpio.EITHER_EDGE,self.LeftAct) self.pio.callback(lid,pigpio.EITHER_EDGE,self.LidAct)
Statistics: Posted by DeaD_EyE — Thu Feb 27, 2025 10:25 am