Login |  Register



Welcome
Welcome to engineeringdiy

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Gpio script
PostPosted: Thu Feb 04, 2016 10:20 pm 
Joined: Fri Dec 18, 2015 9:33 am
Posts: 5
Hallo,

In which script is the code for the rotary encoder and the radio module?
I want to change the hardware, but I can't set configuration for pin 22 and 24.

Please help me.
Thanks


Report this post
Profile  Offline
 
 Post subject: Re: Gpio script
PostPosted: Fri Feb 05, 2016 2:58 am 
Joined: Fri May 22, 2015 8:46 pm
Posts: 331
Follow:

https://github.com/bboyandru/carpc-controller

Notice that there is no Make file . But somewhere here , maybe radio topic or controller , there is something .


Report this post
Profile  Offline
 
 Post subject: Re: Gpio script
PostPosted: Fri Feb 05, 2016 6:01 am 
Joined: Fri Dec 18, 2015 9:33 am
Posts: 5
Thank you!

I would try it, but how can I open the file?


Report this post
Profile  Offline
 
 Post subject: Re: Gpio script
PostPosted: Fri Feb 05, 2016 9:10 am 
Joined: Fri Dec 18, 2015 9:33 am
Posts: 5
When I start the script, which use the GPIO´s then I become this failure:

Code:
sudo python /home/pi/picofssd.py
/home/pi/picofssd.py:7: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(27, GPIO.IN, pull_up_down=GPIO.PUD_UP) # Setup pin 27 as an input
/home/pi/picofssd.py:8: RuntimeWarning: This channel is already in use, continuing anyway.  Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(22, GPIO.OUT) # Setup pin 22 as an output

Broadcast message from root@CarPi (pts/2) (Wed Feb  3 22:43:09 2016):

The system is going down for system halt NOW!


Is there a solution for my problem?


Report this post
Profile  Offline
 
 Post subject: Re: Gpio script
PostPosted: Mon Feb 08, 2016 5:52 am 
Joined: Fri Dec 18, 2015 9:33 am
Posts: 5
Has no one a solution what I can do?


Report this post
Profile  Offline
 
 Post subject: Re: Gpio script
PostPosted: Mon Feb 08, 2016 12:14 pm 
Joined: Fri May 22, 2015 8:46 pm
Posts: 331
Maybe it is something related to python . I suggest you go python language ,RPi(PINs ) forums and could help you as it is more specific related to language itself.

I guess theres is also :

http://wiringpi.com/

It is related to PINs which is compiled during installation !!

Good luck


Report this post
Profile  Offline
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests

Panel

Top You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Search for:
Jump to:  


suspicion-preferred