esp32-car/include/utils.h

12 lines
228 B
C
Raw Normal View History

2024-12-27 09:47:56 +08:00
#ifndef UTILS_H
#define UTILS_H
#include <Arduino.h>
2024-12-27 10:34:06 +08:00
#define FIRMWARE_VERSION 1
2024-12-27 09:47:56 +08:00
void floatToBytes(float val, uint8_t *bytes);
2024-12-27 10:34:06 +08:00
float bytesToFloat(uint8_t *bytes);
2024-12-27 09:47:56 +08:00
void updateStatusLED(bool deviceConnected, int ledPin);
2024-12-27 10:34:06 +08:00
#endif