Library supporting SDS011 sensor on STM32F4 (NUCLEO-F411RE)
- Use of structure
/* USER CODE BEGIN PV */
SDS sds;
/* USER CODE END PV */
- Library initialization
/* USER CODE BEGIN 2 */
sdsInit(&sds, &huart1);
/* USER CODE END 2 */
- Addition HAL_UART_RxCpltCallback in main file
/* USER CODE BEGIN 4 */
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart)
{
sds_uart_RxCpltCallback(&sds,huart);
}
/* USER CODE END 4 */