LEDs
#8
(06-20-2016, 01:41 PM)martinayotte Wrote: The logic is in the RPi.GPIO-PineA64-master/source/common.c file, but of course PL7 isn't there, although it could be added later.
For now, I would go with the sysfs, where GPIOs can be exported, set direction, and then state value.
The pin number would be for PL7 is ("L"-"A")*32+7 = 359 ... I've verified on real hardware and it is working.
echo 359 > /sys/class/gpio/export
echo out > /sys/class/gpio359/direction
echo 1 > /sys/class/gpio359/value

Thanks a lot for the info and testing, I was just about to go figure out the number Smile

Time to solder some LEDs to that board...
Come have a chat in the Pine IRC channel >>


Messages In This Thread
LEDs - by modsbyus - 06-18-2016, 08:03 PM
RE: LEDs - by MarkHaysHarris777 - 06-18-2016, 09:51 PM
RE: LEDs - by pfeerick - 06-20-2016, 05:17 AM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 08:00 AM
RE: LEDs - by martinayotte - 06-20-2016, 12:17 PM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 12:32 PM
RE: LEDs - by martinayotte - 06-20-2016, 01:41 PM
RE: LEDs - by xalius - 06-20-2016, 02:02 PM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 09:15 PM
RE: LEDs - by longsleep - 06-20-2016, 02:11 PM
RE: LEDs - by MarkHaysHarris777 - 06-20-2016, 10:19 PM
RE: LEDs - by MarkHaysHarris777 - 06-21-2016, 01:14 AM
RE: LEDs - by stephen fleming - 04-12-2017, 06:38 PM
RE: LEDs - by xalius - 04-13-2017, 05:33 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)