Hello,
I have complied several Desktop programs and used them on the Rasp-2. None of these applications used the GPIO. The apps established TCP Listening capability on specific ports and worked well. Then I moved onto a data parsing exercise where I would end up needing to either set an output or in a another example read an input and send that data out.
Each time I enable GPIO.SetupGPIO
the Desktop app fails to run
I can get apps such as Blinker to work including to modify the blink rate and duty cycle using CLI. However the Desktop Blinker app in the samples directory fails to run just like the ones I am developing. I can get the app to work by commenting out
[code] 'GPIO.SetupGPIO
// Set the pin to accept output
'GPIO.PinMode(kLEDPin, GPIO.OUTPUT)
// Set the button pin to accept input
'GPIO.PinMode(kButtonPin, GPIO.INPUT)[/code] however as you can guess that is not much good for anything since I cannot read-write to-from the GPIO when using Desktop apps.
Not sure what is not be correct.
I have gone through the steps of deleting the wiringPi folder then re-downloading from git clone and performing ./build without success.
I do not think that is the problem since this gpio -v
and this gpio readall
provide the correct responses in the CLI
I am using XOJO 2015r4 on MAC
Pi 2 is
cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 38.40
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
cat /proc/version
Linux version 4.1.13-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015