+ 2
Im using raspberry pi 2 model B. How can I turn on an LED in 6 a.m. and off in 6:45 a.m. with python.
14 Réponses
+ 1
Work you way through (part of) this titorial and you should be able to solve your problem and more.
https://projects.raspberrypi.org/en/projects/physical-computing
+ 6
You have to install this module first:
http://gpiozero.readthedocs.io/en/stable/installing.html
+ 1
ok I'll try it thanks
0
Thanks I'll try it.
0
you are welcome.
0
It doesn't work. It says Import error : no module named gpiozero
0
I need some ideas and suggestions
0
it says apt command not found
0
first, open command prompt
then, enter:
sudo apt-get update
(press enter)
sudo apt-get upgrade
(press enter)
0
it takes long time for apt get-upgrade
0
yes it completed but it still says apt command not found
0
don't use the apt command in your code, only in the command prompt to update and upgrade your RPi
0
You will probably benefit from reading this aswell. (use free download button)
https://www.raspberrypi.org/magpi/issues/49/
0
I'm using in lxterminal only