The project demonstrates how to program some of ST sensors in Javascript on MbedOS by using Jerryscript https://github.com/jerryscript-project/jerryscript The following sensors are the part of demonstration (while more can be added later on): * LSM6DSL * LSM303AGR * LPS22HB * HTS221 To build the project simply run python build.py in terminal.

Dependencies:   DEVI2C_JS HTS221_JS LPS22HB_JS LSM303AGR_JS LSM6DSL_JS SPI_JS

Check out https://github.com/syed-zeeshan/ST_SENSOR_JS_DEMO to learn more.

Files at this revision

API Documentation at this revision

Comitter:
akhtar.syedzeeshan@gmail.com
Date:
Tue Oct 31 16:27:40 2017 +0100
Parent:
10:15075a2de5dd
Commit message:
Implemented SPI support

Changed in this revision

HTS221_JS.lib Show annotated file Show diff for this revision Revisions of this file
LPS22HB_JS.lib Show annotated file Show diff for this revision Revisions of this file
LSM303AGR_JS.lib Show annotated file Show diff for this revision Revisions of this file
LSM6DSL_JS.lib Show annotated file Show diff for this revision Revisions of this file
SPI_JS.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 15075a2de5dd -r df076f62de33 HTS221_JS.lib
--- a/HTS221_JS.lib	Wed Oct 25 14:19:31 2017 +0200
+++ b/HTS221_JS.lib	Tue Oct 31 16:27:40 2017 +0100
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/ST-Expansion-SW-Team/code/HTS221_JS/#6043b9511072
+https://os.mbed.com/teams/ST-Expansion-SW-Team/code/HTS221_JS/#bbe15d3cac27
diff -r 15075a2de5dd -r df076f62de33 LPS22HB_JS.lib
--- a/LPS22HB_JS.lib	Wed Oct 25 14:19:31 2017 +0200
+++ b/LPS22HB_JS.lib	Tue Oct 31 16:27:40 2017 +0100
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/ST-Expansion-SW-Team/code/LPS22HB_JS/#c2cf5deba40f
+https://os.mbed.com/teams/ST-Expansion-SW-Team/code/LPS22HB_JS/#e92dbbec30d7
diff -r 15075a2de5dd -r df076f62de33 LSM303AGR_JS.lib
--- a/LSM303AGR_JS.lib	Wed Oct 25 14:19:31 2017 +0200
+++ b/LSM303AGR_JS.lib	Tue Oct 31 16:27:40 2017 +0100
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/ST-Expansion-SW-Team/code/LSM303AGR_JS/#ddbdfca82832
+https://os.mbed.com/teams/ST-Expansion-SW-Team/code/LSM303AGR_JS/#d076984ee23b
diff -r 15075a2de5dd -r df076f62de33 LSM6DSL_JS.lib
--- a/LSM6DSL_JS.lib	Wed Oct 25 14:19:31 2017 +0200
+++ b/LSM6DSL_JS.lib	Tue Oct 31 16:27:40 2017 +0100
@@ -1,1 +1,1 @@
-https://os.mbed.com/teams/ST-Expansion-SW-Team/code/LSM6DSL_JS/#0eb0cded8861
+https://os.mbed.com/teams/ST-Expansion-SW-Team/code/LSM6DSL_JS/#4f29cb91aaef
diff -r 15075a2de5dd -r df076f62de33 SPI_JS.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SPI_JS.lib	Tue Oct 31 16:27:40 2017 +0100
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/ST-Expansion-SW-Team/code/SPI_JS/#3a79326cadb9