I have arithmetic issues with micropython.
from microbit import *
counter = 0
while True:
display.show('8')
if accelerometer.was_gesture('shake'):
display.clear()
sleep(1000)
counter = counter + 1
display.scroll(counter)
sleep(10)
Error displayed on the LEDs: TypeError: can't convert to int
What am I missing here?