Skip to content

Commit

Permalink
mpython.py: 修改touch阈值设置函数为config,兼容以前接口
Browse files Browse the repository at this point in the history
  • Loading branch information
tangliufeng committed Dec 18, 2020
1 parent 5c02f06 commit 9644b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion port/boards/mpython/modules/mpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ def __irq_handler(self, value):
if self.event_released is not None:
self.event_released(value)

def set_threshold(self, threshold):
def config(self, threshold):
self.__touch_pad.config(threshold)

def is_pressed(self):
Expand Down

0 comments on commit 9644b4b

Please sign in to comment.