The original works with "Wire.h" library.
I want to use HW I2C fastest on I2C2.
I've spent a night playing with it, with no success..

I've tried so far:
1. Using latest libmaple F1 (there is the Wire library, it does not contain HardWire.h)
2. I include "Wire.h" in the sketch, and/or in ADS1110.h and and/or in ADS1110.cpp
3. With this (and replaced all Wire.xx with HWire.xx in the library and elsewhere) I get "'HWire' was not declared in this scope" errors
Code: Select all
#include "Arduino.h"
#include "Wire.h"
// HardWire HWire(2, I2C_FAST_MODE); // I2C2
#include "ADS1110.h"
HardWire HWire(2, I2C_FAST_MODE); // I2C2
..
Code: Select all
HardWire Wire(2, I2C_FAST_MODE); // I2C2
How to proceed in order to use (or modify) a library for HW I2C2, plz?