Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FT800_2 HYT mbed
UpdateDataToDraw.cpp
00001 #include "Display.h" 00002 00003 /*************************************************************************************************************************/ 00004 void Display::UpdateDataToDraw(uint8_t humidity, int8_t temperature, float flow) 00005 { 00006 if (current_X >= POINTS_NUMBER) { 00007 current_X = 0; 00008 } else { 00009 current_X ++; 00010 } 00011 00012 flow_Y[current_X] = flow * 20; 00013 humidity_Y[current_X] = humidity * 2; 00014 temperature_Y[current_X] = (temperature + 10) * 4; 00015 00016 flow_Y[current_X] = flow_Y[current_X] + Y_BOTTOM_OFFSET; 00017 humidity_Y[current_X] = humidity_Y[current_X] + Y_BOTTOM_OFFSET; 00018 temperature_Y[current_X] = temperature_Y[current_X] + Y_BOTTOM_OFFSET; 00019 00020 CreateStringHumidity(humidityStr, humidity); 00021 CreateStringFlow(flowStr, flow); 00022 CreateStringTemperature(temperatureStr, temperature); 00023 }
Generated on Fri Jul 15 2022 19:43:07 by
