Jump to content
43oh

using tmp006 lights the green and yellow on board LEDs, which I would like to use


Recommended Posts

When using the on board (cc3200) temperature sensor with the tmp006 energia example,  Is there a way to avoid conflicts with other functions using the on board LEDs, specifically the yellow and green LED  remain on when using the tmp006 example  and I was using them for other functions.   Can I disable or move the use of the Green and yellow LED?

 

here is the basic code I am using

Adafruit_TMP006 tmp006(0x41);  // start with a diferent i2c address!

 

// Grab temperature measurements and print them.

  float objt = tmp006.readObjTempC();
  float fobjt = objt * 1.8 + 32.0;
  Serial.print("Object Temperature: "); Serial.print(objt); Serial.print("*C  "); Serial.print(fobjt); Serial.println("*f");
  float diet = tmp006.readDieTempC();
  float fdiet = diet * 1.8 + 32.0;
  Serial.print("Die Temperature: "); Serial.print(diet); Serial.print("*C  ");Serial.print(fdiet); Serial.println("*f");
   
  delay(4000); // 4 seconds per reading for 16 samples per reading
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...