move rgbled i2c address into driver

This commit is contained in:
Daniel Agar
2018-03-13 23:40:18 -04:00
parent 2a5a7b3a1e
commit bb7466c596
13 changed files with 1 additions and 14 deletions

View File

@@ -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"

View File

@@ -119,7 +119,6 @@
*
* Note that these are unshifted addresses.
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
/*

View File

@@ -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"

View File

@@ -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
/*

View File

@@ -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
/*

View File

@@ -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

View File

@@ -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 */

View File

@@ -226,7 +226,6 @@
*
* Note that these are unshifted addresses.
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
/*----------------------------------------------------------*/

View File

@@ -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

View File

@@ -180,7 +180,6 @@
*
* Note that these are unshifted addresses.
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
/*

View File

@@ -241,7 +241,6 @@
* Note that these are unshifted addresses.
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
/*

View File

@@ -165,7 +165,6 @@ __BEGIN_DECLS
*
* Note that these are unshifted addresses.
*/
#define PX4_I2C_OBDEV_LED 0x55
#define PX4_I2C_OBDEV_HMC5883 0x1e
/*

View File

@@ -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) */