This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bot/event_handler.py b/bot/event_handler.py | |
index 6f20bd2..31c8fb6 100644 | |
--- a/bot/event_handler.py | |
+++ b/bot/event_handler.py | |
@@ -17,13 +17,14 @@ class RtmEventHandler(object): | |
def _handle_by_type(self, event_type, event): | |
# See https://api.slack.com/rtm for a full list of events | |
+ #logger.warning('Handle type {0} {1}'.format(event_type, event)) | |
if event_type == 'error': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microbit import * | |
import radio | |
last_x = 2 | |
last_y = 2 | |
matrix = [0 for i in range(25)] | |
def chunks(l, n): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from microbit import * | |
last_x = 2 | |
last_y = 2 | |
def get_index(raw_value, last_index): | |
index = int(round((raw_value / 100) + 2, 0)) | |
return min(max(index, max(last_index - 1, 0)), min(last_index + 1, 4)) |