ifelse

if((bits & 0x10) == 0x10) { bitStatus = 0; } else { bitStatus = 1; }

TIM2_ISR3

inline void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { // Body removed for brevity }

TIM2_ISR2

void HAL_TIM_IRQHandler(TIM_HandleTypeDef *htim) { // Body removed for brevity }

TIM2_ISR

void TIM2_IRQHandler(void) { /* USER CODE BEGIN TIM2_IRQn 0 */ HAL_GPIO_WritePin(TxTest_GPIO_Port, TxTest_Pin, GPIO_PIN_RESET); /* USER CODE END TIM2_IRQn 0 */ HAL_TIM_IRQHandler(&htim2); /* USER CODE BEGIN TIM2_IRQn 1 */ HAL_GPIO_WritePin(TxTest_GPIO_Port, TxTest_Pin, GPIO_PIN_SET); /* USER CODE END TIM2_IRQn 1 */ }

ESP32_uPython

esptool.py –chip esp32 –port /dev/ttyUSB0 write_flash -z 0x1000 esp32-20180511-v1.9.4.bin