Created
June 4, 2015 01:52
-
-
Save foxxjnm/38dd477b574f25f4000e to your computer and use it in GitHub Desktop.
LightBlue Bean temperature sender
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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