1#include "stm32f4xx_hal.h"
3I2C_HandleTypeDef hi2c3;
8static void _keys_config_i2c(
void){
10 hi2c3.Init.ClockSpeed = 100000;
11 hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2;
12 hi2c3.Init.OwnAddress1 = 0;
13 hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
14 hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
15 hi2c3.Init.OwnAddress2 = 0;
16 hi2c3.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
17 hi2c3.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
28 if(HAL_I2C_Master_Transmit(&hi2c3, 0x70, test, 4, 10000) == HAL_OK){