Javascript wrappers for LSM6DSL Sensor library
Dependencies: LSM6DSL
Revision 6:97726929e01f, committed 2018-01-17
- 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
diff -r 4f29cb91aaef -r 97726929e01f LSM6DSL_JS-js.cpp --- 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>© 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: @@ -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;
diff -r 4f29cb91aaef -r 97726929e01f LSM6DSL_JS-js.h --- 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>© 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 4f29cb91aaef -r 97726929e01f LSM6DSL_JS.cpp --- 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>© 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 4f29cb91aaef -r 97726929e01f LSM6DSL_JS.h --- 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>© 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 */ - LSM6DSL_JS(){ printf("calling empty constructor"); } + LSM6DSL_JS(){} LSM6DSL_JS(DevI2C &devI2c); void init(DevI2C &devI2c);