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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
99c59361a7
ssd1308: JavaScript, python examples for ssd1308 OLED Display 1.12"
...
Signed-off-by: Zion Orent <zorent@ics.com >
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-17 11:26:00 -07:00
8d40ca6f10
ldt0028: updated type after rename
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-16 17:14:54 -07:00
a2e80fcc29
flex: changed type name to avoid name clash
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-16 17:14:40 -07:00
7d1976e819
upm.h: removed unused vendors and added kits
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-16 17:14:25 -07:00
c6e87d8c16
adafruitss: placed under servo category
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-16 17:14:11 -07:00
d3471816ba
zfm20: fixed doxygen tags
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-16 17:13:32 -07:00
65fd9804ea
htu21d: fixed typo and removed bad altname
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-16 10:47:58 -07:00
8c7065ed09
adafruitms1438: updated header with new tags
...
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com >
2015-04-16 10:46:11 -07:00
9a024f1aa1
lpd8806: patching up doxygen comments and removing image
2015-04-15 10:07:52 -07:00
475a4aa48a
max5487: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 18:06:53 -07:00
666d7c8459
max31723: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 18:05:22 -07:00
d1258797b0
max31855: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 18:04:21 -07:00
3f09b4ee0c
max44000: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 18:02:48 -07:00
72eebf5b6d
maxds3231m: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 18:01:25 -07:00
aa94a8bd06
mhz16: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:59:59 -07:00
a48bd35893
mic: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:58:58 -07:00
b9090753db
mlx90614: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:57:58 -07:00
76867d8db3
mma7455: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:56:57 -07:00
343bfa2148
mma7660: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:55:54 -07:00
999702e6be
mpl3115a2: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:54:46 -07:00
045782b202
mpr121: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:53:45 -07:00
90feee05aa
mpu9150: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:52:44 -07:00
9c164b8b9e
mq303a: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:51:30 -07:00
ecba83edc5
my9221: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:50:30 -07:00
5dcdc2f9cc
nrf24l01: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:49:14 -07:00
c3fbdb9e33
nrf8001: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:48:11 -07:00
55bf019411
nunchuck: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:47:08 -07:00
2ace28a75f
otp538u: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:46:05 -07:00
d26b9a03d6
pca9685: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:44:55 -07:00
b3eb36ee47
ppd42ns: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:43:57 -07:00
4cc8adbec5
pulsensor: Patching up doxygen comments
...
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com >
2015-04-14 17:42:49 -07:00