Javascript wrappers for HTS221 Sensor library

Dependencies:   HTS221

Dependents:   ST_SENSOR_JS

Files at this revision

API Documentation at this revision

Comitter:
akhtar.syedzeeshan@gmail.com
Date:
Wed Jan 17 10:54:19 2018 +0100
Parent:
5:bbe15d3cac27
Commit message:
Code fixes

Changed in this revision

HTS221_JS-js.cpp Show annotated file Show diff for this revision Revisions of this file
HTS221_JS-js.h Show annotated file Show diff for this revision Revisions of this file
HTS221_JS.cpp Show annotated file Show diff for this revision Revisions of this file
HTS221_JS.h Show annotated file Show diff for this revision Revisions of this file
--- a/HTS221_JS-js.cpp	Tue Oct 31 16:18:15 2017 +0100
+++ b/HTS221_JS-js.cpp	Wed Jan 17 10:54:19 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:
@@ -229,7 +229,7 @@
     // Cast it back to JavaScript
     jerry_value_t out = jerry_create_string((unsigned char *)result);
     
-    printf("temperature: %s\n", result);
+    //printf("temperature: %s\n", result);
    
     // Recycle the result from function
     delete result;
@@ -295,7 +295,7 @@
     // Cast it back to JavaScript
     jerry_value_t out = jerry_create_string((unsigned char *)result);
     
-    printf("humidity: %s\n", result);
+    //printf("humidity: %s\n", result);
    
     // Recycle the result from function
     delete result;
--- a/HTS221_JS-js.h	Tue Oct 31 16:18:15 2017 +0100
+++ b/HTS221_JS-js.h	Wed Jan 17 10:54:19 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/HTS221_JS.cpp	Tue Oct 31 16:18:15 2017 +0100
+++ b/HTS221_JS.cpp	Wed Jan 17 10:54:19 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/HTS221_JS.h	Tue Oct 31 16:18:15 2017 +0100
+++ b/HTS221_JS.h	Wed Jan 17 10:54:19 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 */
-    HTS221_JS(){ printf("calling empty constructor"); }
+    HTS221_JS(){}
     
     HTS221_JS(DevI2C &devI2c);
     void init(DevI2C &devI2c);