Files
Arduino/ESP32_WAVESHARE_7x5/common_functions.h
Jérôme Delacotte 7b30d6e298 first commit
2025-03-06 11:15:32 +01:00

17 lines
548 B
C

#ifndef COMMON_FUNCTIONS_H_
#define COMMON_FUNCTIONS_H_
#include <Arduino.h>
#include <ArduinoJson.h>
#include "common.h"
#define ARRAY_SIZE(array) ((sizeof(array))/(sizeof(array[0])))
float mm_to_inches(float value_mm);
float hPa_to_inHg(float value_hPa);
int JulianDate(int d, int m, int y);
float SumOfPrecip(float DataArray[], int readings);
String TitleCase(String text);
void copy(float* src, float* dst, int len);
void convertJsonToArray(float v[], String json, String sub_level, String data_name);
#endif /* ifndef COMMON_FUNCTIONS_H_ */