Thomas Ingleby
170bdd104f
spdx: add spdx tags to most files
...
Large change that removes the duplicated MIT notice withe a spdx tag
Signed-off-by: Thomas Ingleby <thomas.ingleby@intel.com >
2019-05-23 10:09:12 -07:00
Kas Perch
075a7b1225
JS examples: refactor for clarity and consistent style
...
Signed-off-by: Kassandra Perch <the@nodebotani.st >
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
2017-05-06 14:38:54 +02:00
Houman Brinjcargorabi
b5b84c6186
examples: Added examples for initio by description
...
Signed-off-by: Houman Brinjcargorabi <houman.brinjcargorabi@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-06-27 11:46:24 +01:00
Alex Tereschenko
00a0abd030
isr.js: updated JS ISR example to avoid GPIO context being destroyed
...
Closes #403 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-04-11 15:28:22 +01:00
deadprogram
de0b9e72c6
firmata: Add very simple mraa firmata examples for JS & Python
...
Signed-off-by: Ron Evans <ron@hybridgroup.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:12:30 +00:00
Henry Bruce
6c83886a51
examples: gpio-tool.js now catches exception if invalid pin is specified
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
2016-03-22 18:04:57 +00:00
Henry Bruce
237308898c
examples: Added isrExit() call to gpio-tool.js for ISR shutdown testing
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-03-22 18:04:57 +00:00
Henry Bruce
6bf706befb
examples: Added JavaScript gpio tool
...
Signed-off-by: Henry Bruce <henry.bruce@intel.com >
2016-02-12 11:25:38 +00:00
Alex Tereschenko
c101117ece
js examples: removed surplus char() helper function
...
Closes #226 .
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-02-08 11:16:10 +00:00
Brendan Le Foll
0ebab9603e
Blink-IO.js: Call the function after declaring it
...
This works ok if executing the whole file but the node.js interactive
interpreter gets confused when yoy copy and paste the code
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2016-01-06 16:37:15 +00:00
xbolshe
dbd1a31536
uart.js: Rewrite of example to show more functionality
...
Signed-off-by: Eugene Bolshakov <pub@relvarsoft.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-10-09 14:38:27 +01:00
Brendan Le Foll
163a40e6e7
examples: add uart examples for js & py
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-20 15:04:03 +00:00
Brendan Le Foll
d6891e8bd7
isr.js: add node.js isr example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-18 16:41:31 +00:00
Alex Tereschenko
e7c3c17eb3
examples/aio: Added examples for mraa_aio_read_float()/readFloat()
...
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-02-05 10:43:26 +00:00
Brendan Le Foll
b7a0856f51
spi: Make Spi write() work from SWIG with typemaps
...
This change also changes the C++ API write(char) call to writeByte(uint8_t) and
the write() call now takes a uint8_t* instead of a char*. This should not alter
any code significantly and does not affect the C API.
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-14 11:52:12 +00:00
Brendan Le Foll
461015a22f
bmp85.js: add i2c read/write example
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2015-01-06 11:24:56 +00:00
Brendan Le Foll
2896b05dcd
rgblcd.js: add i2c example similar to python
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-11-05 11:25:41 +00:00
Dan Yocom
99bc1392e4
javascript: added basic examples to mraa
...
Signed-off-by: Dan Yocom <dan.yocom@intel.com >
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-08-15 10:19:23 +01:00
Brendan Le Foll
c821c84e4a
mraa: pymraa becomes mraa and mraajs becomes mraa
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-25 17:49:07 +01:00
Thomas Ingleby
6853997a92
mraa: rename from maa to mraa
...
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-06-24 17:24:54 +01:00
Brendan Le Foll
116d437a79
example.js: make require path follow NODE_ENV and NODE_PATH
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-12 09:54:51 +01:00
Brendan Le Foll
2d12e3bd1c
example.js: fix example to use up to date API
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-06-12 07:59:06 +01:00
Brendan Le Foll
aa60cae49d
maajs: fix example with object API
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-05-08 11:24:13 +01:00
Thomas Ingleby
ea81a0ba75
examples: Update examples to use newer maa functions
...
* Use maa_init() before any other maa functions are called
* Use ioNN instead of gpioXX, Using mapping
Signed-off-by: Thomas Ingleby <thomas.c.ingleby@intel.com >
2014-05-01 17:08:54 +01:00
Brendan Le Foll
aee2087a42
maa: general licensing + styling cleanup
...
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com >
2014-04-22 15:51:28 +01:00
Brendan Le Foll
00ba95bac0
maa: Initial commit of maa, a python and nodejs I2C skeleton only
2014-04-08 18:45:30 +01:00