Muon TMP112 Library and code

Hi All,

I’m looking to use the temperature data from the TMP112A which is on aMuon board I’m working with. When I look for examples, I find photon examples using the spark_wiring_i2c.h file, but I can’t find and install that with Particle Workbench.

Can anyone direct me toward the right library and maybe a code example?

Thx!

That include file is built-in and you don't need to include anything special; its included from

#include "Particle.h"

The I2C API is the same between the Photon and Muon. The Photon code should work without modification.

1 Like

I have an example that reads from the temperature sensor and logs the value in a Ledger instance

2 Likes