diff --git a/README.md b/README.md index 07c4c335789c7bd28f7651cc53e44bac3a712dea..24c70647843c0b7a7120f01fc04df5ee22134d52 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,23 @@ Cosmo Elford ## Task 1 -Getting an LED to turn on without GPIO +Getting the LED to turn on with a battery and 220 Ohm resistor. In our week 3 lab session I discovered I didn't have the battery so I used the Raspberry Pi as a power source instead. + +Working: + +Code: +` +import RPi.GPIO as GPIO + +GPIO.setmode(GPIO.BCM) +GPIO.setwarnings(False) + +GPIO.setup(18,GPIO.OUT) +GPIO.output(18,GPIO.HIGH) +` +[] ## Task 2 ## Task 4 -[](http://www.youtube.com/watch?v=7xLNLzCIo9c) \ No newline at end of file +[](http://www.youtube.com/watch?v=7xLNLzCIo9c) \ No newline at end of file diff --git a/Task1.JPG b/Task1.JPG new file mode 100644 index 0000000000000000000000000000000000000000..48bc2269cd1d4fcb092065dfa2fb2bb98ef68a38 Binary files /dev/null and b/Task1.JPG differ