Skip to content

Instantly share code, notes, and snippets.

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':
from microbit import *
import radio
last_x = 2
last_y = 2
matrix = [0 for i in range(25)]
def chunks(l, n):
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))