--- wikisrc/ports/evbarm/odroid-c1.mdwn 2015/04/03 20:23:55 1.14 +++ wikisrc/ports/evbarm/odroid-c1.mdwn 2015/04/25 14:50:13 1.15 @@ -20,13 +20,13 @@ - RTL8211F PHY - Hardware random number generator - RTC + - GPIO # TODO - USB device mode - Simultaneous SD card and eMMC usage - SD/MMC UHS-I support (needs sdmmc(4) changes) - IR receiver - - GPIO - I2C - Audio @@ -147,6 +147,27 @@ Setting *scale* to 100 disables scaling, To set this value at boot, you can add **fb.scale=95** to the kernel cmdline options in *boot.ini*. +# SYS_LED + +The blue SYS_LED on the board is wired to GPIOAO_13. To control the LED from userland, set **gpio=YES** in rc.conf and add this to */etc/gpio.conf*: + +[[!template id=programlisting text=""" +gpio4 13 set out sys_led +"""]] + +After rebooting, the LED state can be controlled with [[!template id=man name="gpioctl" section="8"]]. + +[[!template id=programlisting text=""" +# turn the light on +gpioctl gpio4 sys_led on + +# turn the light off +gpioctl gpio4 sys_led off + +# toggle the light state +gpioctl gpio4 sys_led toggle +"""]] + # Documentation Amlogic S805 datasheet: