ESP32-C3 RC

This commit is contained in:
2025-01-03 09:40:26 -05:00
parent 4b14faea16
commit ff4e0d2d91
13 changed files with 738 additions and 1486 deletions

View File

@@ -799,11 +799,11 @@ static void display_chip_temperature () {
void onDataReceived (uint8_t *mac_addr, uint8_t *data, uint8_t data_len) {
memcpy(buf, data, data_len);
//buf = (sensors_data_t*)data;
//memcpy(buf, data, data_len);
buf = (sensors_data_t*)data;
ESP_LOGW(TAG, "Data was received");
ESP_LOGI(TAG, "x-axis: 0x%04X", (uint8_t)buf->x_axis);
ESP_LOGI(TAG, "y-axis: 0x%04X", (uint8_t)buf->y_axis);
ESP_LOGI(TAG, "x-axis: 0x%04X", buf->x_axis);
ESP_LOGI(TAG, "y-axis: 0x%04X", buf->y_axis);
ESP_LOGI(TAG, "PCM 1: 0x%04X", buf->motor1_rpm_pcm);
}