Library to use the EMC1072 dual temperature module over I2C. Hopefully, it will support Linux, Particle/Arduino and MBed.


This EMC1072 library will control the EMC1072 dual temp. I2C integrated circuit. Currently the library offers just a Linux I2C interface, but hopefully soon this will support:

  • Linux
  • Particle/Arduino
  • MBed


Most commands return a success boolean which tells if the call was successful. It is very important to check this on every call.


Note: Don't forget to include the built library in your linker and header in your source.

#include <iostream>
#include "emc1072.h"

Emc1072 temp_device("/dev/i2c-1");
char id;

if (temp_device.get_id(id)) {
   std::cout << "Device ID: " << id << std::endl;


The EMC1072 chip can be purchased from any major retailer (i.e. Digikey, Mouser, etc.). If you'd like a breakout board, I have a board schematic on OSHPark.com. They will make a board in about 2 weeks and you'll have to attach the chip yourself. Note: you'll probably need pull-up resistors for the I2C bus as well (like 5k, no more than 10k).