|Re: 4DIAC IDE - BB GPIO [message #1748121 is a reply to message #1748065]
||Fri, 18 November 2016 16:11
|| Herwig Eichler
Registered: February 2016
RPI is just short for the Raspberry Pi and it is no GPIO support package. The first implementation in your screenshots is exactly the way you should do it on the Beaglebone Black (BBB).
The easiest way to use the GPIO interface of the BBB is the SYSFS interface of FORTE. You need to compile FORTE for the BBB and activate the SYSFS module in the CMAKE configuration.
You can use the IX Blocks for reading the GPIO pin and QX for writing to it (e.g. switch a LED on or off).
The PARAM should be the GPIO pin number you connected your LED to (e.g. BBB connector P8 pin 20 is GPIO pin number 63).
I don't know the Raspberry SPS very well, but if I'm not much mistaken, it uses GPIO port expanders via I2C interface, so the PARAM 1.88.0 should match the 1st I2C bus, device with I2C address 88 (the GPIO port expander chip) and the channel on the chip.
hope it helps
PS: if you need some more detailed information about the BBB hardware and programming I can definitely recommend the book of Derek Molloy called Exploring Beaglebone.
PPS: make sure, that you don't connect the LED without a current limiting resistor, otherwise the BBB might be damaged. The GPIO pins operate at 3,3V level and can stand a couple of mA current only.
[Updated on: Fri, 18 November 2016 17:44]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02155 seconds