Here is the code that isn't working.
I assume there is a problem with line 7 using two equal signs. Anyone see a fix for me?
Code: Select all
from gpiozero import Button from picamera import PiCamera from time import sleep left_button = Button(3) camera = PiCamera() camera.start_preview() left_button.when_pressed = camera.image_effect = 'colorswap' sleep(10) camera.stop_preview()