Mihai Tudor Panu
c7ed54d037
gas: moved node and py examples to parent folder for autodoc
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-29 17:30:53 -07:00
Ranjan Kumar
b1d999e70b
apds9002: updated header and doxygen tags
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-29 17:30:14 -07:00
Wouter van Verre
124a9eb41d
i2clcd: Add ssd.h to the CMakeLists.txt file.
...
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:35:35 -07:00
Wouter van Verre
479a9553f6
i2clcd: replace #define with const data inside the namespace.
...
This keeps the constants in the correct scope and avoid potential
naming conflicts with other files.
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:35:01 -07:00
Wouter van Verre
31c4f470fe
i2clcd: use the mraa C++ API instead of the C API
...
Rewrite the i2c module to be based around the MRAA C++ API,
since this makes resource management easier inside of the UPM
C++ classes.
i2clcd.{h,cxx}: remove the close() function. This now automatically gets
called when the object goes out of scope, inside the destructor.
examples/i2clcd: fix C++/Python/Javascript examples that explicitly called the close function.
The I2c context now gets called by the destructor of the sensor class. This
happens when the object goes out of scope or when it gets deleted, if the
object was created using the new keyword, as is the case here.
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:34:27 -07:00
Wouter van Verre
53b58225a4
i2clcd: remove unused function argument from the writeChar function
...
The writeChar function in the ssd13xx classes had an unused argument.
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:33:48 -07:00
Wouter van Verre
ae0d99369b
i2clcd: remove the helper functions i2Cmd, i2cData & i2cReg
...
Remove calls to I2C helper functions (i2Cmd, i2cData, i2cReg) and call
the raw MRAA function directly instead and remove the helper functions from the
I2CLcd class
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:33:13 -07:00
Wouter van Verre
bcdaccf68d
jhd11313m1.cxx: modify the duration of the usleep calls in the constructor
...
The new values for the durations match the recommended values from the
datasheet more closely
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:32:39 -07:00
Wouter van Verre
a6aa972c1c
jhd1313m1.cxx: Add comment explaining why write starts with a usleep call
...
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:32:05 -07:00
Wouter van Verre
67bd592ed9
i2clcd: improve error handling in the I2CLcd and Jhd1313m1 classes
...
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:31:32 -07:00
Wouter van Verre
dea82728af
i2clcd_private.h: Added a private header file to hold macros
...
Added new, private, header file which contains macros used to check the
return value of mraa function calls
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:30:59 -07:00
Wouter van Verre
98f4bcde31
jhd1313m1.cxx: remove repeated function calls
...
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:30:26 -07:00
Wouter van Verre
bb59d5db7a
i2clcd: Reformat the lcd source code
...
Reformatted to prepare for improving the error handling. This reformatting
was done using clang-format.
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:29:51 -07:00
Wouter van Verre
3abd3a5ee9
.clang-format: Add a .clang-format file to UPM
...
This file is based on the MRAA .clang-format file
Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 17:29:14 -07:00
Brendan Le Foll
9bb485367a
adafruitms1438/CMakeLists.txt: fix building with BUILDSWIG=OFF
...
Missing if statement for building without SWIG (but not explicitely disabling
SWIGNODE & SWIGPYTHON)
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-04-23 17:23:20 -07:00
Mihai Tudor Panu
769b31e0ec
cmake: forced mraa pkg check every time a config is generated
...
This fixes an issue with the wrong libmraa version being reported by cmake on
configuration after a mraa update, even though the build will use the newer
binary.
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-23 14:07:45 -07:00
Mihai Tudor Panu
52540a678a
upm: added version changelog
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-22 12:56:17 -07:00
Mihai Tudor Panu
78182278cc
upm: update to version 0.2.0
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
v0.2.0
2015-04-22 12:54:32 -07:00
Mihai Tudor Panu
3998cdfb1e
docs: updated gsk sensors and @kit tags
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 15:43:24 -07:00
Mihai Tudor Panu
969a25cf0d
adafruitss: updated sensor category to avoid name clash
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 15:32:20 -07:00
Zion Orent
a2864d3559
ta12200: python example and JS modification for ta12200 electricity sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:49:40 -07:00
Zion Orent
4ab6873a42
adc121c021: python example and JS modification for adc121c021 analog/digital converter
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:49:02 -07:00
Zion Orent
7b0dce0992
hmtrp: python example for hmtrp Serial RF radio
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:48:30 -07:00
Zion Orent
57bab4f9df
l298: python examples for l298 dual-H bridge DC motor and stepper motor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:47:56 -07:00
Zion Orent
4f4bd2937a
ina132: python example for ina132 differential amplifier
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:47:24 -07:00
Zion Orent
8c55b54969
groveehr: python example and js modification for groveehr heart-rate sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:46:50 -07:00
Zion Orent
4f53c9c43a
adafruitms1438: python examples for adafruitms1438 motor shield
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:46:17 -07:00
Zion Orent
94fe1174c6
lsm303: python example and js modification for lsm303 accelerometer/compass
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:45:46 -07:00
Zion Orent
f9d0e4621b
groveloudness: python example for grove loudness sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:45:13 -07:00
Zion Orent
3d535b5dec
groveemg: python example for grove emg muscle signal reader
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:44:41 -07:00
Zion Orent
97204cfc31
grovegsr: python example for grove gsr skin response sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:44:05 -07:00
Zion Orent
d8dc267fef
mma7660: python example for mma7660 accelerometer
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:43:29 -07:00
Zion Orent
13704fffe0
gas: python examples for mq2, mq3, mq5, and mq9 gas sensors
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:42:55 -07:00
Zion Orent
2ceee8bf26
grovevdiv: python example and js modification for grovevdiv voltage divider
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:42:21 -07:00
Zion Orent
6c93816a77
cjq4435: python example and js modification for cjq4435 MOSFET sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:41:44 -07:00
Zion Orent
20890aa2fb
grovemd: python example for grovemd I2C motor driver
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:41:11 -07:00
Zion Orent
c95af93490
adxl335: python example (and JS example modification) for adxl335 analog accelerometer
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:40:38 -07:00
Zion Orent
60815f034d
my9221: python example for my9221 LED bar
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:40:05 -07:00
Zion Orent
357018109f
tcs3414cs: python example for tcs3414cs I2C color sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:39:34 -07:00
Zion Orent
de96a3d327
ds1307: python example for ds1307 RTC clock
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:39:02 -07:00
Zion Orent
78482791c1
grovecollision: python example and updated JS example for grove collision sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:38:25 -07:00
Zion Orent
2168b404bd
groveo2: python example for grove O2 gas sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:37:44 -07:00
Zion Orent
ff897e84eb
wt5001: new python example and update to JS example for wt5001 mp3 player
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:37:07 -07:00
Zion Orent
f0cd7843c7
groveelectromagnet: python example for grove electromagnet
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:36:30 -07:00
Zion Orent
aedd3fa4e3
mpr121: python example for mpr121 touch sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:35:49 -07:00
Zion Orent
e4ac7c4a13
otp538u: python example for otp538u Grove Infrared Temperature Sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:35:13 -07:00
Zion Orent
aba51d10c7
rpr220: python example for rpr220 Infrared Reflective Sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:34:39 -07:00
Zion Orent
999eca4598
enc03r: python example for enc03r analog gyro
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:34:04 -07:00
Zion Orent
44d31a3dfd
tsl2561: python example for tsl2561 digital light sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:33:31 -07:00
Zion Orent
66913cdb20
a110x: python example for a110x hall effect (magnet) sensor
...
Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2015-04-17 11:32:58 -07:00