Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
find_package (Threads REQUIRED)
find_package (PkgConfig REQUIRED)
# force the libmaa version to be the required version
-pkg_check_modules (MAA REQUIRED maa=0.2.3)
+pkg_check_modules (MAA REQUIRED maa=0.2.5)
message (INFO " found libmaa version: ${MAA_VERSION}")
set (CMAKE_SWIG_FLAGS "")
maa_result_t off();
maa_result_t on();
private:
- maa_gpio_context* m_gpio;
+ maa_gpio_context m_gpio;
};
class GroveTemp: public Grove {
float raw_value();
int value();
private:
- maa_aio_context* m_aio;
+ maa_aio_context m_aio;
};
class GroveLight: public Grove {
float raw_value();
int value();
private:
- maa_aio_context* m_aio;
+ maa_aio_context m_aio;
};
}
private:
int m_coor[3];
char m_rx_tx_buf[MAX_BUFFER_LENGTH];
- maa_i2c_context* m_i2c;
+ maa_i2c_context m_i2c;
};
}
int write4bits(char value);
int expandWrite(char value);
int pulseEnable(char value);
- maa_i2c_context* m_i2c;
+ maa_i2c_context m_i2c;
};
}