I have upgraded to the new rPi B+ 2 now from the old B model. Keep in mind that everything worked fine with my older boards. Now with my newer boards it does not.
I have my script in the rc.local which is to set my GPIO pins.
BOOT=25 echo "$BOOT" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio$BOOT/direction echo "1" > /sys/class/gpio/gpio$BOOT/value
if I enter these commands in the terminal which are the same ones as in my script, there is no effect on the pins. In the above case, I am setting pin25 to HIGH. When I check the values of direction and of value, I see that the above parameters are indeed written to those files, BUT my pin is still not HIGH and if I do a
I see that there is literally no change. readall reveals that pin25 is still "IN" and "LOW" even after I just ran the above commands.
However, if in the terminal, I manually set the parameters for that pin via:
gpio mode 25 out gpio write 25 1
the pin changes to HIGH and my led comes on.
I suspect this has something to do with upgrading the pi image prior to being able to use it in this new pi, but can not figure why.