You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't seem able to set a leg's output state :(
I've tried this code but either I've mis-understood the cb.set_output function or it doesn't work
Help please :)
import os
import sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0, parentdir)
from codebug_tether import CodeBug
import time
if __name__ == '__main__':
cb = CodeBug()
cb.clear()
for i in range(3):
cb.set_output(0,True)
time.sleep(1)
cb.set_output(0,False)
time.sleep(1)
Activity
tompreston commentedon Aug 17, 2015
Ah it looks like I forgot to add the
set_leg_iomethod. It's in now - use it like so:tompreston commentedon Aug 17, 2015
(also new firmware with this change)