Curious cube -week 2
This week I started working on the screen. I needed different animations for different scenarios:
Starting to fall asleep
Sleeping
Waking up
Status quo
Feeling that touch is going to come from right
Feeling that touch is going to come from left
Feeling the touch
I started by looking for inspiration for my illustration:

Then I designed the different faces

and then I animated them

Then I started to connect the screen to the raspberry PI, I used this guide:
https://learn.adafruit.com/user-space-spi-tft-python-library-ili9341-2-8/wiring
and this photo:

Then I installed Visual Studio for my code and the https://github.com/adafruit/Adafruit_Python_ILI9341 library. I used one of the library examples.
The gif showed but it was glitchy and not on full screen:
I changed the library (https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display)
and it helped a bit.
The I connected the sensor:

and wrote an if statement for every scenarios:

This is the result: