| | |
| | | * Copyright: (C) 2018 LingYun IoT System Studio |
| | | * All rights reserved. |
| | | * |
| | | * Filename: led.c |
| | | * Filename: led.h |
| | | * Description: This file is used to control RGB 3-colours LED |
| | | * |
| | | * pi@raspberrypi:~ $ gpio readall show BCM and wPi pinmap |
| | | * |
| | | * LED BCM wPi |
| | | * B ---- GPIO.13 ---- GPIO.23 |
| | | * G ---- GPIO.13 ---- GPIO.23 |
| | | * R ---- GPIO.19 ---- GPIO.24 |
| | | * G ---- GPIO.26 ---- GPIO.25 |
| | | * B ---- GPIO.26 ---- GPIO.25 |
| | | * I ---- GND ---- |
| | | * |
| | | * Version: 1.0.0(2018/10/14) |
| | |
| | | /* 3 LEDs WiringPi GPIO port */ |
| | | |
| | | /* LED_R LED_G LED_B */ |
| | | static int led_gpio[LED_MAX]= { 24, 25, 23 }; |
| | | static int led_gpio[LED_MAX]= { 24, 23, 25 }; |
| | | |
| | | |
| | | void init_led(void); |