sethweed
Posts: 1
Joined: Sat Jan 11, 2014 1:54 pm

Pidora / Programing

Sat Jan 11, 2014 7:02 pm

Hi my name is seth . I have been able to turn on and off an LED with the two examples of code below. I would like to use this simple project to start to learn how to program. The wall that I am runing into is a good sourse of information to read from. I would like to make the LED blink and have been able to do this by trial and error by just repeating the gpio -g write 18 1 ; gpio -g write 18 0 ; and so on, but what I would like to do is to build from this maybe haveing a simple gui window that will display when the led is turned on from a switch. With all these ideas and no foundation of writng code makes it slow going. If any one can point me in a direction to a good site that I may be able to start to learn a knowledge base of code maybe C++or any others. I would be greatfull, Thank you seth

Code: Select all

sudo su                                                                          
cd /sys/class/gpio                                                                                     
echo 27 > export                                                                    
cd gpio27                                                                       
echo out  > direction 
echo 1 > value 
echo 0 > value
[code]

[code]
gpio export 18 out 
gpio -g mode 18 out 
gpio -g write 18 1
gpio -g write 18 0

Return to “Pidora / Fedora”