Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 23rd, 2012  |  syntax: None  |  size: 0.48 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. def init(port):
  2.         import zigbee;
  3.         zigbee.init(port);
  4. def forward():
  5.     import zigbee;
  6.     zigbee.sendString("a");
  7. def stop():
  8.     import zigbee;
  9.     zigbee.sendString(" ");
  10. def backward():
  11.     import zigbee;
  12.     zigbee.sendString("s");
  13. def left():
  14.     import zigbee;
  15.     zigbee.sendString("a");
  16. def right():
  17.     import zigbee;
  18.     zigbee.sendString("d");
  19. def buzzer_on():
  20.     import zigbee;
  21.     zigbee.sendString("h");
  22. def buzzer_off():
  23.     import zigbee;
  24.     zigbee.sendString("m");