Aquarium Cooling Controller
ESP32 firmware for aquarium cooling fan control, monitoring, telemetry, and fault handling.
Loading...
Searching...
No Matches
Functions
display_format.h File Reference

Shared helpers for rounded operator-facing value formatting. More...

#include <Arduino.h>
#include <stdio.h>
Include dependency graph for display_format.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void DisplayFormat::formatTemperatureC (float value, char *buffer, size_t bufferSize)
 Formats a temperature-like float with one decimal place.
 
void DisplayFormat::printTemperatureC (Stream &out, float value)
 Prints a temperature-like float with one decimal place.
 

Detailed Description

Shared helpers for rounded operator-facing value formatting.

Function Documentation

◆ formatTemperatureC()

void DisplayFormat::formatTemperatureC ( float  value,
char *  buffer,
size_t  bufferSize 
)
inline

Formats a temperature-like float with one decimal place.

Formatting happens only at display boundaries so control logic can keep the full internal floating-point precision.

Parameters
valueTemperature or delta value in degrees Celsius.
bufferDestination character buffer.
bufferSizeSize of the destination buffer in bytes.

◆ printTemperatureC()

void DisplayFormat::printTemperatureC ( Stream &  out,
float  value 
)
inline

Prints a temperature-like float with one decimal place.

Parameters
outDestination stream.
valueTemperature or delta value in degrees Celsius.