Skip to content

Commit 03666b9

Browse files
committed
adjust
1 parent 1189fae commit 03666b9

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

10.microbit/Sensegesture.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,7 @@ def is_right(self, runtime=10, interval=0.5):
4545
return True
4646
return False
4747

48-
<<<<<<< HEAD
4948
def is_left(self, runtime=10, interval=0.5):
50-
=======
51-
def is_left(self, runtime=10, interval=20):
52-
>>>>>>> e93743a47002ab7f190f46fa47011728fcec748d
5349
status = 0
5450
self.get_brightness()
5551
self.set_threshold(0.1)
@@ -68,11 +64,7 @@ def is_left(self, runtime=10, interval=20):
6864
# print('left_new=%d' % self.LightL.new_val)
6965
sleep_ms(20)
7066
count += 1
71-
<<<<<<< HEAD
7267
if count > interval*40:
73-
=======
74-
if count > interval:
75-
>>>>>>> e93743a47002ab7f190f46fa47011728fcec748d
7668
status = Sensegesture.idle
7769
if self.LightL.last_val-self.LightL.new_val > self.threshold:
7870
status = Sensegesture.finish

0 commit comments

Comments
 (0)