📄 davincihd_led.h
字号:
/*
* Copyright 2007 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* LED header file
*
*/
#ifndef LED_
#define LED_
#ifdef __cplusplus
extern "C" {
#endif
#include "davincihd.h"
#include "davincihd_i2c_gpio.h"
/* ------------------------------------------------------------------------ *
* LED Count *
* ------------------------------------------------------------------------ */
#define NUM_LEDS 4
/* ------------------------------------------------------------------------ *
* I2C Address *
* ------------------------------------------------------------------------ */
#define LED_I2C_ADDR I2C_GPIO_GROUP_0
/* ------------------------------------------------------------------------ *
* Prototypes *
* ------------------------------------------------------------------------ */
Int16 DAVINCIHD_LED_init ( );
Int16 DAVINCIHD_LED_on ( Uint16 number );
Int16 DAVINCIHD_LED_off ( Uint16 number );
Int16 DAVINCIHD_LED_toggle( Uint16 number );
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -