mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
maa: update for 0.2.5 API
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
parent
d6bb8bc1db
commit
811aa6b71c
@ -9,7 +9,7 @@ endif ()
|
||||
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 "")
|
||||
|
@ -48,7 +48,7 @@ class GroveLed: public Grove {
|
||||
maa_result_t off();
|
||||
maa_result_t on();
|
||||
private:
|
||||
maa_gpio_context* m_gpio;
|
||||
maa_gpio_context m_gpio;
|
||||
};
|
||||
|
||||
class GroveTemp: public Grove {
|
||||
@ -58,7 +58,7 @@ class GroveTemp: public Grove {
|
||||
float raw_value();
|
||||
int value();
|
||||
private:
|
||||
maa_aio_context* m_aio;
|
||||
maa_aio_context m_aio;
|
||||
};
|
||||
|
||||
class GroveLight: public Grove {
|
||||
@ -68,7 +68,7 @@ class GroveLight: public Grove {
|
||||
float raw_value();
|
||||
int value();
|
||||
private:
|
||||
maa_aio_context* m_aio;
|
||||
maa_aio_context m_aio;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
private:
|
||||
int m_coor[3];
|
||||
char m_rx_tx_buf[MAX_BUFFER_LENGTH];
|
||||
maa_i2c_context* m_i2c;
|
||||
maa_i2c_context m_i2c;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -58,7 +58,7 @@ private:
|
||||
int write4bits(char value);
|
||||
int expandWrite(char value);
|
||||
int pulseEnable(char value);
|
||||
maa_i2c_context* m_i2c;
|
||||
maa_i2c_context m_i2c;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user