17 lines
548 B
C
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_ */
|