From 84e70dac3168c8c869f31126783898b2f10e4e46 Mon Sep 17 00:00:00 2001 From: Masato Tomita Date: Thu, 30 Jan 2020 15:51:12 +0900 Subject: [PATCH 1/2] changed driver to one that ES moduled create Node.js version example --- examples/adxl345/index.html | 5 +- examples/adxl345/main.js | 4 +- .../GROVEACCELEROMETER.js | 57 -- .../package.json | 45 -- .../@chirimen-raspi/polyfill/package.json | 34 -- .../@chirimen-raspi/polyfill/polyfill.js | 571 ------------------ examples/adxl345/package.json | 6 +- node-examples/adxl345/main.js | 23 + node-examples/adxl345/package.json | 9 + node-examples/adxl345/readme.md | 3 + node-examples/adxl345/sandbox.config.json | 3 + node-examples/adxl345/schematic.png | Bin 0 -> 182875 bytes 12 files changed, 44 insertions(+), 716 deletions(-) delete mode 100755 examples/adxl345/node_modules/@chirimen-raspi/chirimen-driver-i2c-grove-accelerometer/GROVEACCELEROMETER.js delete mode 100644 examples/adxl345/node_modules/@chirimen-raspi/chirimen-driver-i2c-grove-accelerometer/package.json delete mode 100644 examples/adxl345/node_modules/@chirimen-raspi/polyfill/package.json delete mode 100755 examples/adxl345/node_modules/@chirimen-raspi/polyfill/polyfill.js create mode 100755 node-examples/adxl345/main.js create mode 100644 node-examples/adxl345/package.json create mode 100644 node-examples/adxl345/readme.md create mode 100644 node-examples/adxl345/sandbox.config.json create mode 100644 node-examples/adxl345/schematic.png diff --git a/examples/adxl345/index.html b/examples/adxl345/index.html index cdd57de..2412b65 100755 --- a/examples/adxl345/index.html +++ b/examples/adxl345/index.html @@ -7,9 +7,8 @@ content="width=device-width, user-scalable=no, initial-scale=1" /> Grove Digital Accelerometer sensor - - - + +