| | |
| | | MX_CAN1_Init(); |
| | | /* USER CODE BEGIN 2 */ |
| | | |
| | | printf("Welcome to ISKBoard v1.0\r\n"); |
| | | printf("Welcome to ISKBoard v1.0, compiled on %s %s\r\n", __DATE__, __TIME__); |
| | | |
| | | OLED_Init(); |
| | | ws2812b_init(); |
| | |
| | | } |
| | | |
| | | printf("ESP32 firmware version:\r\n%s\r\n", version); |
| | | |
| | | if( !strstr(version, "1.7.1.0") ) |
| | | { |
| | | printf("ERROR: ESP32 firmware not matched, please upgrade it first!\r\n"); |
| | | rv = -2; |
| | | goto cleanup; |
| | | } |
| | | init = 1; |
| | | } |
| | | |
| | | rv = send_atcmd_check_ok(comport, "AT", 500); |
| | | |
| | | cleanup: |
| | | printf("WiFi module AT test [%s]\r\n", rv?"FAIL":"OKAY"); |
| | | snprintf(oledstr, sizeof(oledstr), "WiFi: %s", rv?"FAIL":"OK"); |
| | | oled_show(oledstr); |