I am working on open-source project openrovy porting for Raspberry P (this project was developed for beagle bone ). The only important challenge of the port is changing the reference of GPIO1_0 (aka GPIO32) software to a pin that is open on top of Raspberry PI (I am thinking GPIO18). The original code is as follows:
#! / Bin / sh # GPIO1_0 equals / sys / class / gpio32 (32 + 0) #see http://ninjablocks.com/blog/ 2012/1/20/set-up-GPIO -On-The-BeagleBoneHTML BackTor_Oormal () Echo "high" & gt; higher than Sleep 1 # GPO1 SIP; / Sys / class / gpio / gpio32 / direction} reset () {sleep 1 #prepare gpio echo "32" & gt; / Sys / class / gpio / export Echo "Out" & gt; / Sys / class / gpio / gpio32 / direction echo 7 & gt; / Sys / kernel / debug / omap_mux / gpmc_ad0 #set GPIO1_0 to lower the "lower" echo & gt; / Sys / class / gpio / gpio32 / direction back_to_normal} echo arduino reset 1 & gt; 2 resets & amp; Of course, I can go through bus and can change a lot of references from 32 to 18, but with this every update will require additional work. Instead, is there any way to create a dummy GPIO 32 which automatically redirects the command to GPIO 18?
I just python and rpi with risberry p and its GPI The GPO started using the Linux package. I have written about my first simple steps on my blog:
is a call that sets the mode of the board or BCM, which is the GPIOOSCET (GPIO board) or GPIO. Sitmoda (GPIO.BCM) By calling and changing between two pin configurations. If you see how it can help you with your problem.
No comments:
Post a Comment