Raspberry Pi challenges
  #
- Boot the Pi and log in.
- Create a new directory called fun-stuff.
- Create a new file in fun-stuffthat is calledpoem.txtand write a poem about ME 30.
- Install pipandRPi.GPIOand write a Python 3 script that sets pin 13 high. Test with an LED (don’t forget a current-limiting resistor for your LED).
- Write a Python 3 script that sets pin 13 high if the value of pin 16 is also high. Test with an LED at pin 13 and a button and 10K pull-down resistor at pin 16.
- Write a Python 3 script that prints “button pressed” when you press a button that you’ve wired between ground and pin 18. (Hint: you’ll probably need to set pin 18’s internal pull-up resistor.)
- Write a Python 3 script to change the speed of your motor using PWM.
- Install Flask and start it running.
- Modify your Flask instance so when you request the URL http://IP_ADDRESS_OF_YOUR_PI:5000/runmotor, your motor turns on.