Port Arduino Library for MCP9600

If you are asking a question, please follow this template:

  1. My goal is:
    To get the mongoose-os to work with the MCP9600 chip.

  2. My actions are:
    I am looking to port an Ardunio library to provide access to the MCP9600 chip.

I am attempting to port the following library from Arduino

  1. The result I see is:
    It has a dependency on
  • Adafruit_I2CDevice.h
  • Adafruit_I2CRegister.h

when building I get the following error

fatal error: Adafruit_I2CDevice.h: No such file or directory
 #include <Adafruit_I2CDevice.h>
          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
  1. My expectation & question is:
    How do I get around this dependency issue? I don’t see any other ports that have the same dependency so there is nothing to copy.

I did notice there is another library that does not have these dependencies. Will I be better off attempting this instead?

The sparkfun’s library is very easy to port.

Great. I might need to port a few other libraries as well.

How would I handle similar dependencies

Well, I wouldn’t port an Arduino library to Mongoose OS, I’d rather write a native one based on the datasheet.

Brief guide to porting an Arduino library here