|
Re: 4DIAC IDE - BB GPIO [message #1748121 is a reply to message #1748065] |
Fri, 18 November 2016 16:11 |
|
Hi,
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
Herwig
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
|
|
|
Re: 4DIAC IDE - BB GPIO [message #1748164 is a reply to message #1748121] |
Sat, 19 November 2016 23:00 |
|
Hi,
To add to Herwigs answer everywhere where you see some paramters enclosed in % signs it means that this is a placeholder variable. In the bottom of the 4diac-ide window where the property sheet usually is located you will find a tab named virtual dns there you can find the value with wich this %-variable will be replaced during download. This can be of help when you are switching deployment targets.
Cheers,
Alois
|
|
|
Powered by
FUDForum. Page generated in 0.03564 seconds