Skip to content

Instantly share code, notes, and snippets.

@fxprime
Created January 29, 2021 02:28
Show Gist options
  • Select an option

  • Save fxprime/eb09086a9c8ea6251895e0e25867db4d to your computer and use it in GitHub Desktop.

Select an option

Save fxprime/eb09086a9c8ea6251895e0e25867db4d to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
#include <unistd.h>
int main()
{
while(1) {
float pressure = 10013.0;
float temperature = 31;
printf("Pressure : %.2f, Temperature : %.2f degC\n", pressure, temperature);
usleep(1000);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment