Permalink
Browse files

added gitignore, blocks to return motor values.

  • Loading branch information...
1 parent 971ca95 commit 09278846aecaa926bbbe12dbdb81e8ecf3c76c85 @itdaniher committed Mar 16, 2011
Showing with 24 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 TurtleArt/turtleart
  3. +22 −0 TurtleArt/wedo_plugin.py
View
@@ -0,0 +1 @@
+*pyc
Submodule turtleart updated from 867630 to e46262
@@ -41,6 +41,28 @@ def setup(self):
prim_name = 'distance')
self._parent.lc.def_prim('distance', 0, lambda self: primitive_dictionary['distance']())
+
+ primitive_dictionary['getMotorA'] = self.WeDo.getMotorA
+
+ palette.add_block('getMotorA',
+ style='box-style',
+ label=_('Motor A Value'),
+ help_string=_('returns the current value of Motor A'),
+ value_block=True,
+ prim_name = 'getMotorA')
+
+ self._parent.lc.def_prim('getMOtorA', 0, lambda self: primitive_dictionary['getMotorA']())
+
+ primitive_dictionary['getMotorB'] = self.WeDo.getMotorA
+
+ palette.add_block('getMotorB',
+ style='box-style',
+ label=_('Motor B Value'),
+ help_string=_('returns the current value of Motor B'),
+ value_block=True,
+ prim_name = 'getMotorB')
+
+ self._parent.lc.def_prim('getMOtorB', 0, lambda self: primitive_dictionary['getMotorB']())
primitive_dictionary['setMotorA'] = self.WeDo.setMotorA

0 comments on commit 0927884

Please sign in to comment.