Javascript wrappers for LSM6DSL Sensor library

Dependencies:   LSM6DSL

Dependents:   ST_SENSOR_JS

Files at this revision

API Documentation at this revision

Comitter:
akhtar.syedzeeshan@gmail.com
Date:
Wed Jan 17 10:56:16 2018 +0100
Parent:
5:4f29cb91aaef
Commit message:
Code fixes

Changed in this revision

LSM6DSL_JS-js.cpp Show annotated file Show diff for this revision Revisions of this file
LSM6DSL_JS-js.h Show annotated file Show diff for this revision Revisions of this file
LSM6DSL_JS.cpp Show annotated file Show diff for this revision Revisions of this file
LSM6DSL_JS.h Show annotated file Show diff for this revision Revisions of this file
--- a/LSM6DSL_JS-js.cpp	Tue Oct 31 16:21:19 2017 +0100
+++ b/LSM6DSL_JS-js.cpp	Wed Jan 17 10:56:16 2018 +0100
@@ -9,7 +9,7 @@
  ******************************************************************************
  * @attention
  *
- * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
+ * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
  *
  * Redistribution and use in source and binary forms, with or without modification,
  * are permitted provided that the following conditions are met:
@@ -223,7 +223,7 @@
     jerry_value_t out = jerry_create_string((unsigned char *)result);
     
     //mbed::Serial pc((PinName)0x2C, (PinName)0x32);
-    printf("accele: %s\n", result);
+    //printf("accele: %s\n", result);
    
     // Recycle the result from function
     delete result;
--- a/LSM6DSL_JS-js.h	Tue Oct 31 16:21:19 2017 +0100
+++ b/LSM6DSL_JS-js.h	Wed Jan 17 10:56:16 2018 +0100
@@ -9,7 +9,7 @@
  ******************************************************************************
  * @attention
  *
- * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
+ * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
  *
  * Redistribution and use in source and binary forms, with or without modification,
  * are permitted provided that the following conditions are met:
--- a/LSM6DSL_JS.cpp	Tue Oct 31 16:21:19 2017 +0100
+++ b/LSM6DSL_JS.cpp	Wed Jan 17 10:56:16 2018 +0100
@@ -9,7 +9,7 @@
  ******************************************************************************
  * @attention
  *
- * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
+ * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
  *
  * Redistribution and use in source and binary forms, with or without modification,
  * are permitted provided that the following conditions are met:
--- a/LSM6DSL_JS.h	Tue Oct 31 16:21:19 2017 +0100
+++ b/LSM6DSL_JS.h	Wed Jan 17 10:56:16 2018 +0100
@@ -9,7 +9,7 @@
  ******************************************************************************
  * @attention
  *
- * <h2><center>&copy; COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
+ * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics</center></h2>
  *
  * Redistribution and use in source and binary forms, with or without modification,
  * are permitted provided that the following conditions are met:
@@ -60,7 +60,7 @@
 
 public:
     /* Constructors */
-    LSM6DSL_JS(){ printf("calling empty constructor"); }
+    LSM6DSL_JS(){}
     
     LSM6DSL_JS(DevI2C &devI2c);
     void init(DevI2C &devI2c);