Skip to content

Instantly share code, notes, and snippets.

@fxprime
Created January 29, 2021 04:03
Show Gist options
  • Save fxprime/8d6ec07c70fd2e3e7c8b35c40eac8540 to your computer and use it in GitHub Desktop.
Save fxprime/8d6ec07c70fd2e3e7c8b35c40eac8540 to your computer and use it in GitHub Desktop.
#include <Arduino.h>
void setup() {
Serial.begin(115200);
}
void loop() {
float pressure = 10013.0;
float temperature = 31;
Serial.println( String("Pressure : ") + String(pressure,2) + String(", Temperature : ") + String(temperature,2) + String(" degC"));
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment