+tested IMU, +tested PCA9685, fail to work together

This commit is contained in:
2026-10-13 13:13:33 +03:00
parent 5d00e3f970
commit 97d089cf90
13 changed files with 484 additions and 10 deletions
+3 -3
View File
@@ -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;
}
/**