+tested IMU, +tested PCA9685, fail to work together
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#include "PCA9685.h"
|
||||
#include "stm32f4xx_hal.h"
|
||||
#include "hwI2C2.h"
|
||||
#include "hwI2C.h"
|
||||
|
||||
/* PCA9685 I2C address */
|
||||
/* 0x40 is the 7-bit address. HAL requires it shifted left by 1 (0x80) */
|
||||
#define PCA9685_ADDR (0x40 << 1)
|
||||
#define PCA9685_ADDR (0x41 << 1)
|
||||
|
||||
/* Register Addresses */
|
||||
#define MODE1 0x00
|
||||
@@ -30,7 +30,7 @@ static bool pca9685_write_i2c(uint8_t reg, uint8_t data)
|
||||
I2C_MEMADD_SIZE_8BIT,
|
||||
&data,
|
||||
1,
|
||||
10) == HAL_OK;
|
||||
50) == HAL_OK;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user