from sense_hat import SenseHat
import picamera
import time
import io
camera=picamera.PiCamera()
camera.resolution=(64,64)
sense=SenseHat()
while True:
time.sleep(1)
camera.capture('p.jpg', resize=(8,8))
sense.load_image('p.jpg')