Javascript wrappers for HTS221 Sensor library
Dependencies: HTS221
Revision 6:b2c4b0678856, committed 2018-01-17
- 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
diff -r bbe15d3cac27 -r b2c4b0678856 HTS221_JS-js.cpp --- 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>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> + * <h2><center>© 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;
diff -r bbe15d3cac27 -r b2c4b0678856 HTS221_JS-js.h --- 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>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> + * <h2><center>© 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:
diff -r bbe15d3cac27 -r b2c4b0678856 HTS221_JS.cpp --- 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>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> + * <h2><center>© 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:
diff -r bbe15d3cac27 -r b2c4b0678856 HTS221_JS.h --- 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>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2> + * <h2><center>© 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);