Skip to content

Instantly share code, notes, and snippets.

@foxxjnm
Created June 4, 2015 01:52
Show Gist options
  • Save foxxjnm/38dd477b574f25f4000e to your computer and use it in GitHub Desktop.
Save foxxjnm/38dd477b574f25f4000e to your computer and use it in GitHub Desktop.
LightBlue Bean temperature sender
void setup()
{
// Bean Serial is at a fixed baud rate. Changing the value in Serial.begin() has no effect.
Serial.begin();
}
void loop()
{
//Convert to Fahrenheit
int temperature = (Bean.getTemperature() * 9.0)/ 5.0 + 32.0;
Serial.print(temperature);
Serial.print("\n");
Bean.sleep(300000); //sleep for five min
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment