mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
move rgbled i2c address into driver
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
#define PX4_I2C_BUS_EXPANSION 3
|
||||
#define PX4_I2C_BUS_LED 3
|
||||
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
|
||||
#define BOARD_OVERRIDE_UUID "SYSMEMID"
|
||||
|
||||
#include "../common/board_common.h"
|
||||
|
||||
@@ -119,7 +119,6 @@
|
||||
*
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
|
||||
/*
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
#define PX4_I2C_BUS_EXPANSION 3
|
||||
#define PX4_I2C_BUS_LED 3
|
||||
#define PX4_NUMBER_I2C_BUSES 3
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
|
||||
#include <system_config.h>
|
||||
#include "../common/board_common.h"
|
||||
|
||||
@@ -136,7 +136,6 @@
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
// #define PX4_I2C_OBDEV_MPU6050 0x68
|
||||
|
||||
/*
|
||||
|
||||
@@ -265,7 +265,6 @@ __BEGIN_DECLS
|
||||
|
||||
#define PX4_I2C_BUS_LED PX4_I2C_BUS_EXPANSION
|
||||
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
|
||||
/*
|
||||
|
||||
@@ -50,7 +50,6 @@
|
||||
#define BOARD_NUMBER_I2C_BUSES 4
|
||||
#define BOARD_MAX_LEDS 1 // Number external of LED's this board has
|
||||
#define PX4_I2C_BUS_LED 1
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_BUS_EXPANSION 1
|
||||
|
||||
// Battery ADC channels
|
||||
|
||||
@@ -217,7 +217,6 @@ __BEGIN_DECLS
|
||||
*
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
|
||||
/* Define the follwoing to output the clock on J500-1 */
|
||||
|
||||
@@ -226,7 +226,6 @@
|
||||
*
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
|
||||
/*----------------------------------------------------------*/
|
||||
|
||||
@@ -162,7 +162,6 @@
|
||||
*
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
#define PX4_I2C_OBDEV_BMP280 0x76
|
||||
|
||||
|
||||
@@ -180,7 +180,6 @@
|
||||
*
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
|
||||
/*
|
||||
|
||||
@@ -241,7 +241,6 @@
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
|
||||
/*
|
||||
|
||||
@@ -165,7 +165,6 @@ __BEGIN_DECLS
|
||||
*
|
||||
* Note that these are unshifted addresses.
|
||||
*/
|
||||
#define PX4_I2C_OBDEV_LED 0x55
|
||||
#define PX4_I2C_OBDEV_HMC5883 0x1e
|
||||
|
||||
/*
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
#define RGBLED_ONTIME 120
|
||||
#define RGBLED_OFFTIME 120
|
||||
|
||||
#define ADDR PX4_I2C_OBDEV_LED /**< I2C adress of TCA62724FMG */
|
||||
#define ADDR 0x55 /**< I2C adress of TCA62724FMG */
|
||||
#define SUB_ADDR_START 0x01 /**< write everything (with auto-increment) */
|
||||
#define SUB_ADDR_PWM0 0x81 /**< blue (without auto-increment) */
|
||||
#define SUB_ADDR_PWM1 0x82 /**< green (without auto-increment) */
|
||||
|
||||
Reference in New Issue
Block a user