MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / windDirectionIcon

Function windDirectionIcon

ESP32_AP-Flasher/src/contentmanager.cpp:3033–3040  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3031}
3032
3033String windDirectionIcon(const int degrees) {
3034 const String directions[] = {"\uf044", "\uf043", "\uf048", "\uf087", "\uf058", "\uf057", "\uf04d", "\uf088"};
3035 int index = (degrees + 22) / 45;
3036 if (index >= 8) {
3037 index = 0;
3038 }
3039 return directions[index];
3040}
3041
3042void getLocation(JsonObject &cfgobj) {
3043 const String lat = cfgobj["#lat"];

Callers 2

drawWeatherContentFunction · 0.85
drawForecastFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected