Re:How to blink a light in 10 different programming languages
by swiley on Saturday November 07, 2015 @10:45PM
(#10527365)
On Linux you're allowed to mmap gpio as well if I'm not mistaken.
[ Parent
| on HN ]
Re:How to blink a light in 10 different programming languages
by asciimike on Saturday November 07, 2015 @11:48PM
(#10527541)
Yep, mmap is definitely a possibility here, though finding out where everything is is a bit of a pain (Derek Molloy's device tree charts really help here: http://derekmolloy.ie/beaglebone/beaglebone-gpio-programming...).
An example of LED toggling via mmap on the Beaglebone is here: https://github.com/MarkAYoder/BeagleBoard-exercises/blob/mas... (and the associated tutorial: http://elinux.org/EBC_Exercise_11b_gpio_via_mmap)