2525
2626#include " fonts/fonts.h"
2727
28- void SSD1306DisplayDevice ::showNumConfirmed () {
28+ void DisplayDevice ::showNumConfirmed () {
2929 String val = String (confirmedMeasurements);
3030 if (confirmedMeasurements <= 9 ) {
3131 val = " 0" + val;
@@ -34,7 +34,7 @@ void SSD1306DisplayDevice::showNumConfirmed() {
3434 this ->prepareTextOnGrid (3 , 5 , " conf" );
3535}
3636
37- void SSD1306DisplayDevice ::showNumButtonPressed () {
37+ void DisplayDevice ::showNumButtonPressed () {
3838 String val = String (numButtonReleased);
3939 if (numButtonReleased <= 9 ) {
4040 val = " 0" + val;
@@ -43,7 +43,7 @@ void SSD1306DisplayDevice::showNumButtonPressed() {
4343 this ->prepareTextOnGrid (1 , 5 , " press" );
4444}
4545
46- void SSD1306DisplayDevice ::displaySimple (uint16_t value) {
46+ void DisplayDevice ::displaySimple (uint16_t value) {
4747 if (value == MAX_SENSOR_VALUE) {
4848 this ->prepareTextOnGrid (0 , 0 ,
4949 " " , HUGE_FONT, -7 , -7 );
@@ -54,7 +54,7 @@ void SSD1306DisplayDevice::displaySimple(uint16_t value) {
5454 this ->prepareTextOnGrid (3 , 2 , " cm" , MEDIUM_FONT, -7 , -5 );
5555}
5656
57- void SSD1306DisplayDevice ::showValues (
57+ void DisplayDevice ::showValues (
5858 HCSR04SensorInfo sensor1, HCSR04SensorInfo sensor2, uint16_t minDistanceToConfirm, int16_t batteryPercentage,
5959 int16_t TemperaturValue, int lastMeasurements, boolean insidePrivacyArea,
6060 double speed, uint8_t satellites) {
@@ -141,7 +141,7 @@ void SSD1306DisplayDevice::showValues(
141141
142142}
143143
144- void SSD1306DisplayDevice ::showGPS (uint8_t sats) {
144+ void DisplayDevice ::showGPS (uint8_t sats) {
145145 String val = String (sats);
146146 if (sats <= 9 ) {
147147 val = " 0" + val;
@@ -150,7 +150,7 @@ void SSD1306DisplayDevice::showGPS(uint8_t sats) {
150150 this ->prepareTextOnGrid (3 , 5 , " sats" );
151151}
152152
153- void SSD1306DisplayDevice ::showBatterieValue (int16_t input_val){
153+ void DisplayDevice ::showBatterieValue (int16_t input_val){
154154
155155 uint8_t x_offset_batterie_logo = 65 ;
156156 uint8_t y_offset_batterie_logo = 2 ;
@@ -195,7 +195,7 @@ void SSD1306DisplayDevice::showBatterieValue(int16_t input_val){
195195 // m_display->display();
196196 }
197197
198- void SSD1306DisplayDevice ::showTemperatureValue (int16_t input_val){
198+ void DisplayDevice ::showTemperatureValue (int16_t input_val){
199199 uint8_t x_offset_temp_logo = 30 ;
200200 uint8_t y_offset_temp_logo = 2 ;
201201 cleanTemperatur (x_offset_temp_logo,y_offset_temp_logo);
@@ -204,7 +204,7 @@ void SSD1306DisplayDevice::showTemperatureValue(int16_t input_val){
204204 this ->showTextOnGrid (1 , 0 , val + " °C" , TINY_FONT);
205205}
206206
207- void SSD1306DisplayDevice ::showSpeed (double velocity) {
207+ void DisplayDevice ::showSpeed (double velocity) {
208208 const int bufSize = 4 ;
209209 char buffer[bufSize];
210210 if (velocity >= 0 ) {
@@ -216,30 +216,30 @@ void SSD1306DisplayDevice::showSpeed(double velocity) {
216216 this ->prepareTextOnGrid (1 , 5 , " km/h" );
217217}
218218
219- uint8_t SSD1306DisplayDevice ::currentLine () const {
219+ uint8_t DisplayDevice ::currentLine () const {
220220 return mCurrentLine ;
221221}
222222
223- uint8_t SSD1306DisplayDevice ::newLine () {
223+ uint8_t DisplayDevice ::newLine () {
224224 if (mCurrentLine >= 5 ) {
225225 scrollUp ();
226226 }
227227 return ++mCurrentLine ;
228228}
229229
230- uint8_t SSD1306DisplayDevice ::scrollUp () {
230+ uint8_t DisplayDevice ::scrollUp () {
231231 for (uint8_t i = 0 ; i < 5 ; i++) {
232232 prepareTextOnGrid (2 , i, obsDisplay->get_gridTextofCell (2 , i + 1 ));
233233 }
234234 m_display->display ();
235235 return mCurrentLine --;
236236}
237237
238- uint8_t SSD1306DisplayDevice ::startLine () {
238+ uint8_t DisplayDevice ::startLine () {
239239 return mCurrentLine = 0 ;
240240}
241241
242- void SSD1306DisplayDevice ::highlight (uint32_t highlightTimeMillis) {
242+ void DisplayDevice ::highlight (uint32_t highlightTimeMillis) {
243243 mHighlightTill = millis () + highlightTimeMillis;
244244 if (!mHighlighted ) {
245245 if (mInverted ) {
@@ -251,7 +251,7 @@ void SSD1306DisplayDevice::highlight(uint32_t highlightTimeMillis) {
251251 }
252252}
253253
254- void SSD1306DisplayDevice ::handleHighlight () {
254+ void DisplayDevice ::handleHighlight () {
255255 if (mHighlighted && mHighlightTill < millis ()) {
256256 if (mInverted ) {
257257 m_display->invertDisplay ();
0 commit comments