Code Monkey home page Code Monkey logo

adafruit-i2c-pwm-driver's People

Contributors

kaosat-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

adafruit-i2c-pwm-driver's Issues

Readme example incorrect

In the readme this package is required like this:

const makePwmDriver = require('adafruit-i2c-pwm')

This doesn't work for me. Instead this worked:

const makePwmDriver = require('adafruit-i2c-pwm-driver')

As far as I can tell the readme needs to be updated there. Am I right?

project doesn't install on rasbpian

Raspberry Pi 2 running Raspbian Lite

Output

pi@raspberrypi:~/Dev/kaosat-dev/adafruit-i2c-pwm-driver $ npm i

> [email protected] install /home/pi/Dev/kaosat-dev/adafruit-i2c-pwm-driver/node_modules/i2c
> node-gyp rebuild

make: Entering directory '/home/pi/Dev/kaosat-dev/adafruit-i2c-pwm-driver/node_modules/i2c/build'
  CXX(target) Release/obj.target/i2c/src/i2c.o
../src/i2c.cc:17:32: error: ‘Arguments’ does not name a type
 Handle<Value> SetAddress(const Arguments& args) {
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> SetAddress(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:18:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:20:16: error: invalid types ‘const int[int]’ for array subscript
   addr = args[0]->Int32Value();
                ^
../src/i2c.cc:24:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(Undefined());
                ^
../src/i2c.cc:24:32: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(Undefined());
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:324:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/i2c.cc: At global scope:
../src/i2c.cc:27:26: error: ‘Arguments’ does not name a type
 Handle<Value> Scan(const Arguments& args) {
                          ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> Scan(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:28:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:31:58: error: invalid types ‘const int[int]’ for array subscript
   Local<Function> callback = Local<Function>::Cast(args[0]);
                                                          ^
../src/i2c.cc:32:38: error: invalid conversion from ‘int’ to ‘v8::Isolate*’ [-fpermissive]
   Local<Array> results(Array::New(128));
                                      ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:3039:23: note: initializing argument 1 of ‘static v8::Local<v8::Array> v8::Array::New(v8::Isolate*, int)’
   static Local<Array> New(Isolate* isolate, int length = 0);
                       ^
../src/i2c.cc:33:45: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’
   Local<Value> err = Local<Value>::New(Null());
                                             ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:325:27: note: declared here
   friend Local<Primitive> Null(Isolate* isolate);
                           ^
../src/i2c.cc:45:37: error: no matching function for call to ‘v8::Integer::New(int&)’
     results->Set(i, Integer::New(res));
                                     ^
../src/i2c.cc:45:37: note: candidate is:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note:   candidate expects 2 arguments, 1 provided
../src/i2c.cc:52:18: error: ‘GetCurrent’ is not a member of ‘v8::Context’
   callback->Call(Context::GetCurrent()->Global(), argc, argv);
                  ^
../src/i2c.cc:54:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(results);
                ^
../src/i2c.cc: At global scope:
../src/i2c.cc:57:27: error: ‘Arguments’ does not name a type
 Handle<Value> Close(const Arguments& args) {
                           ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> Close(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:58:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:63:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(Undefined());
                ^
../src/i2c.cc:63:32: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(Undefined());
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:324:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/i2c.cc: At global scope:
../src/i2c.cc:66:26: error: ‘Arguments’ does not name a type
 Handle<Value> Open(const Arguments& args) {
                          ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> Open(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:67:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:69:34: error: invalid types ‘const int[int]’ for array subscript
   String::Utf8Value device(args[0]);
                                  ^
../src/i2c.cc:71:45: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’
   Local<Value> err = Local<Value>::New(Null());
                                             ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:325:27: note: declared here
   friend Local<Primitive> Null(Isolate* isolate);
                           ^
../src/i2c.cc:75:28: error: ‘New’ is not a member of ‘v8::String’
     err = Exception::Error(String::New("Failed to open I2C device"));
                            ^
../src/i2c.cc:78:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[1]->IsFunction()) {
             ^
../src/i2c.cc:80:60: error: invalid types ‘const int[int]’ for array subscript
     Local<Function> callback = Local<Function>::Cast(args[1]);
                                                            ^
../src/i2c.cc:83:20: error: ‘GetCurrent’ is not a member of ‘v8::Context’
     callback->Call(Context::GetCurrent()->Global(), argc, argv);
                    ^
../src/i2c.cc:86:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(Undefined());
                ^
../src/i2c.cc:86:32: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(Undefined());
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:324:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/i2c.cc: At global scope:
../src/i2c.cc:89:30: error: ‘Arguments’ does not name a type
 Handle<Value> ReadByte(const Arguments& args) {
                              ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> ReadByte(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:90:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:93:45: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’
   Local<Value> err = Local<Value>::New(Null());
                                             ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:325:27: note: declared here
   friend Local<Primitive> Null(Isolate* isolate);
                           ^
../src/i2c.cc:98:28: error: ‘New’ is not a member of ‘v8::String’
     err = Exception::Error(String::New("Cannot read device"));
                            ^
../src/i2c.cc:100:28: error: no matching function for call to ‘v8::Integer::New(int8_t&)’
     data = Integer::New(res);
                            ^
../src/i2c.cc:100:28: note: candidate is:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note:   candidate expects 2 arguments, 1 provided
../src/i2c.cc:103:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[0]->IsFunction()) {
             ^
../src/i2c.cc:105:60: error: invalid types ‘const int[int]’ for array subscript
     Local<Function> callback = Local<Function>::Cast(args[0]);
                                                            ^
../src/i2c.cc:108:20: error: ‘GetCurrent’ is not a member of ‘v8::Context’
     callback->Call(Context::GetCurrent()->Global(), argc, argv);
                    ^
../src/i2c.cc:110:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(data);
                ^
../src/i2c.cc: At global scope:
../src/i2c.cc:113:31: error: ‘Arguments’ does not name a type
 Handle<Value> ReadBlock(const Arguments& args) {
                               ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> ReadBlock(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:114:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:116:22: error: invalid types ‘const int[int]’ for array subscript
   int8_t cmd = args[0]->Int32Value();
                      ^
../src/i2c.cc:117:23: error: invalid types ‘const int[int]’ for array subscript
   int32_t len = args[1]->Int32Value();
                       ^
../src/i2c.cc:119:45: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’
   Local<Value> err = Local<Value>::New(Null());
                                             ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:325:27: note: declared here
   friend Local<Primitive> Null(Isolate* isolate);
                           ^
../src/i2c.cc:120:16: error: expected primary-expression before ‘*’ token
   node::Buffer *buffer =  node::Buffer::New(len);
                ^
../src/i2c.cc:120:17: error: ‘buffer’ was not declared in this scope
   node::Buffer *buffer =  node::Buffer::New(len);
                 ^
../src/i2c.cc:120:48: error: no matching function for call to ‘New(int32_t&)’
   node::Buffer *buffer =  node::Buffer::New(len);
                                                ^
../src/i2c.cc:120:48: note: candidates are:
In file included from ../src/i2c.cc:2:0:
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                        ^
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:31:40: note:   candidate expects 2 arguments, 1 provided
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:34:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:34:40: note:   candidate expects 3 arguments, 1 provided
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:39:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:39:40: note:   candidate expects 5 arguments, 1 provided
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:46:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t)
 NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                        ^
/home/pi/.node-gyp/6.9.1/include/node/node_buffer.h:46:40: note:   candidate expects 3 arguments, 1 provided
../src/i2c.cc:122:29: error: ‘GetCurrent’ is not a member of ‘v8::Context’
   Local<Object> globalObj = Context::GetCurrent()->Global();
                             ^
../src/i2c.cc:123:76: error: ‘New’ is not a member of ‘v8::String’
   Local<Function> bufferConstructor = Local<Function>::Cast(globalObj->Get(String::New("Buffer")));
                                                                            ^
../src/i2c.cc:124:77: error: no matching function for call to ‘v8::Integer::New(int32_t&)’
   Handle<Value> constructorArgs[3] = { buffer->handle_, v8::Integer::New(len), v8::Integer::New(0) };
                                                                             ^
../src/i2c.cc:124:77: note: candidate is:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note:   candidate expects 2 arguments, 1 provided
../src/i2c.cc:124:98: error: no matching function for call to ‘v8::Integer::New(int)’
   Handle<Value> constructorArgs[3] = { buffer->handle_, v8::Integer::New(len), v8::Integer::New(0) };
                                                                                                  ^
../src/i2c.cc:124:98: note: candidate is:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t)
   static Local<Integer> New(Isolate* isolate, int32_t value);
                         ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:2558:25: note:   candidate expects 2 arguments, 1 provided
../src/i2c.cc:125:81: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance(int, v8::Local<v8::Value>*) const’ is deprecated (declared at /home/pi/.node-gyp/6.9.1/include/node/v8.h:3269): Use maybe version [-Wdeprecated-declarations]
   Local<Object> actualBuffer = bufferConstructor->NewInstance(3, constructorArgs);
                                                                                 ^
../src/i2c.cc:129:30: error: ‘New’ is not a member of ‘v8::String’
       err = Exception::Error(String::New("Error reading length of bytes"));
                              ^
../src/i2c.cc:134:15: error: invalid types ‘const int[int]’ for array subscript
     if (args[3]->IsFunction()) {
               ^
../src/i2c.cc:136:62: error: invalid types ‘const int[int]’ for array subscript
       Local<Function> callback = Local<Function>::Cast(args[3]);
                                                              ^
../src/i2c.cc:138:22: error: ‘GetCurrent’ is not a member of ‘v8::Context’
       callback->Call(Context::GetCurrent()->Global(), argc, argv);
                      ^
../src/i2c.cc:141:15: error: invalid types ‘const int[int]’ for array subscript
     if (args[2]->IsNumber()) {
               ^
../src/i2c.cc:142:29: error: invalid types ‘const int[int]’ for array subscript
       int32_t delay = args[2]->Int32Value();
                             ^
../src/i2c.cc:148:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(actualBuffer);
                ^
../src/i2c.cc: At global scope:
../src/i2c.cc:152:31: error: ‘Arguments’ does not name a type
 Handle<Value> WriteByte(const Arguments& args) {
                               ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> WriteByte(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:153:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:155:23: error: invalid types ‘const int[int]’ for array subscript
   int8_t byte = args[0]->Int32Value();
                       ^
../src/i2c.cc:156:45: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’
   Local<Value> err = Local<Value>::New(Null());
                                             ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:325:27: note: declared here
   friend Local<Primitive> Null(Isolate* isolate);
                           ^
../src/i2c.cc:159:28: error: ‘New’ is not a member of ‘v8::String’
     err = Exception::Error(String::New("Cannot write to device"));
                            ^
../src/i2c.cc:162:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[1]->IsFunction()) {
             ^
../src/i2c.cc:164:60: error: invalid types ‘const int[int]’ for array subscript
     Local<Function> callback = Local<Function>::Cast(args[1]);
                                                            ^
../src/i2c.cc:167:20: error: ‘GetCurrent’ is not a member of ‘v8::Context’
     callback->Call(Context::GetCurrent()->Global(), argc, argv);
                    ^
../src/i2c.cc:170:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(Undefined());
                ^
../src/i2c.cc:170:32: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(Undefined());
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:324:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/i2c.cc: At global scope:
../src/i2c.cc:173:32: error: ‘Arguments’ does not name a type
 Handle<Value> WriteBlock(const Arguments& args) {
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> WriteBlock(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:174:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:176:31: error: invalid types ‘const int[int]’ for array subscript
   Local<Value> buffer = args[1];
                               ^
../src/i2c.cc:178:22: error: invalid types ‘const int[int]’ for array subscript
   int8_t cmd = args[0]->Int32Value();
                      ^
../src/i2c.cc:182:45: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’
   Local<Value> err = Local<Value>::New(Null());
                                             ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:325:27: note: declared here
   friend Local<Primitive> Null(Isolate* isolate);
                           ^
../src/i2c.cc:185:28: error: ‘New’ is not a member of ‘v8::String’
     err = Exception::Error(String::New("Cannot write to device"));
                            ^
../src/i2c.cc:188:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[2]->IsFunction()) {
             ^
../src/i2c.cc:190:60: error: invalid types ‘const int[int]’ for array subscript
     Local<Function> callback = Local<Function>::Cast(args[2]);
                                                            ^
../src/i2c.cc:193:20: error: ‘GetCurrent’ is not a member of ‘v8::Context’
     callback->Call(Context::GetCurrent()->Global(), argc, argv);
                    ^
../src/i2c.cc:196:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(Undefined());
                ^
../src/i2c.cc:196:32: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(Undefined());
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:324:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/i2c.cc: At global scope:
../src/i2c.cc:199:31: error: ‘Arguments’ does not name a type
 Handle<Value> WriteWord(const Arguments& args) {
                               ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h: In function ‘v8::Handle<v8::Value> WriteWord(const int&)’:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:915:13: error: ‘v8::HandleScope::HandleScope()’ is protected
   V8_INLINE HandleScope() {}
             ^
../src/i2c.cc:200:15: error: within this context
   HandleScope scope;
               ^
../src/i2c.cc:202:22: error: invalid types ‘const int[int]’ for array subscript
   int8_t cmd = args[0]->Int32Value();
                      ^
../src/i2c.cc:203:24: error: invalid types ‘const int[int]’ for array subscript
   int16_t word = args[1]->Int32Value();
                        ^
../src/i2c.cc:205:45: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’
   Local<Value> err = Local<Value>::New(Null());
                                             ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:325:27: note: declared here
   friend Local<Primitive> Null(Isolate* isolate);
                           ^
../src/i2c.cc:208:28: error: ‘New’ is not a member of ‘v8::String’
     err = Exception::Error(String::New("Cannot write to device"));
                            ^
../src/i2c.cc:211:13: error: invalid types ‘const int[int]’ for array subscript
   if (args[2]->IsFunction()) {
             ^
../src/i2c.cc:213:60: error: invalid types ‘const int[int]’ for array subscript
     Local<Function> callback = Local<Function>::Cast(args[2]);
                                                            ^
../src/i2c.cc:216:20: error: ‘GetCurrent’ is not a member of ‘v8::Context’
     callback->Call(Context::GetCurrent()->Global(), argc, argv);
                    ^
../src/i2c.cc:219:16: error: ‘class v8::HandleScope’ has no member named ‘Close’
   return scope.Close(Undefined());
                ^
../src/i2c.cc:219:32: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Undefined(v8::Isolate*)’
   return scope.Close(Undefined());
                                ^
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:324:27: note: declared here
   friend Local<Primitive> Undefined(Isolate* isolate);
                           ^
../src/i2c.cc: In function ‘void Init(v8::Handle<v8::Object>)’:
../src/i2c.cc:223:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("scan"),
               ^
../src/i2c.cc:224:31: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     FunctionTemplate::New(Scan)->GetFunction());
                               ^
../src/i2c.cc:224:31: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc:226:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("setAddress"),
               ^
../src/i2c.cc:227:37: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     FunctionTemplate::New(SetAddress)->GetFunction());
                                     ^
../src/i2c.cc:227:37: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc:229:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("open"),
               ^
../src/i2c.cc:230:31: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     FunctionTemplate::New(Open)->GetFunction());
                               ^
../src/i2c.cc:230:31: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc:232:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("close"),
               ^
../src/i2c.cc:233:32: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     FunctionTemplate::New(Close)->GetFunction());
                                ^
../src/i2c.cc:233:32: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc:235:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("writeByte"),
               ^
../src/i2c.cc:236:38: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
       FunctionTemplate::New(WriteByte)->GetFunction());
                                      ^
../src/i2c.cc:236:38: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc:238:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("writeBlock"),
               ^
../src/i2c.cc:239:39: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
       FunctionTemplate::New(WriteBlock)->GetFunction());
                                       ^
../src/i2c.cc:239:39: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc:241:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("readByte"),
               ^
../src/i2c.cc:242:35: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     FunctionTemplate::New(ReadByte)->GetFunction());
                                   ^
../src/i2c.cc:242:35: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc:244:15: error: ‘NewSymbol’ is not a member of ‘v8::String’
   target->Set(String::NewSymbol("readBlock"),
               ^
../src/i2c.cc:245:36: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’
     FunctionTemplate::New(ReadBlock)->GetFunction());
                                    ^
../src/i2c.cc:245:36: note: candidates are:
In file included from /home/pi/.node-gyp/6.9.1/include/node/node.h:42:0,
                 from ../src/i2c.cc:1:
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4483:34: note:   no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int, v8::ConstructorBehavior)
   static Local<FunctionTemplate> New(
                                  ^
/home/pi/.node-gyp/6.9.1/include/node/v8.h:4487:34: note:   candidate expects 6 arguments, 1 provided
../src/i2c.cc: In function ‘v8::Handle<v8::Value> SetAddress(const int&)’:
../src/i2c.cc:25:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> Scan(const int&)’:
../src/i2c.cc:55:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> Close(const int&)’:
../src/i2c.cc:64:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> Open(const int&)’:
../src/i2c.cc:87:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> ReadByte(const int&)’:
../src/i2c.cc:111:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> ReadBlock(const int&)’:
../src/i2c.cc:149:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> WriteByte(const int&)’:
../src/i2c.cc:171:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> WriteBlock(const int&)’:
../src/i2c.cc:197:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
../src/i2c.cc: In function ‘v8::Handle<v8::Value> WriteWord(const int&)’:
../src/i2c.cc:220:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
i2c.target.mk:90: recipe for target 'Release/obj.target/i2c/src/i2c.o' failed
make: *** [Release/obj.target/i2c/src/i2c.o] Error 1
make: Leaving directory '/home/pi/Dev/kaosat-dev/adafruit-i2c-pwm-driver/node_modules/i2c/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.26-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/pi/Dev/kaosat-dev/adafruit-i2c-pwm-driver/node_modules/i2c
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
[email protected] /home/pi/Dev/kaosat-dev/adafruit-i2c-pwm-driver
├── [email protected] 
├─┬ [email protected] 
│ └── [email protected] 
└── [email protected] 

npm ERR! Linux 4.4.26-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "i"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the i2c package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs i2c
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls i2c
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/pi/Dev/kaosat-dev/adafruit-i2c-pwm-driver/npm-debug.log
pi@raspberrypi:~/Dev/kaosat-dev/adafruit-i2c-pwm-driver $ node --version
v6.9.1
pi@raspberrypi:~/Dev/kaosat-dev/adafruit-i2c-pwm-driver $ npm --version
3.10.8

No support for multiple i2c addresses - Update i2c library to 0.1.4

Hi,

please upgrade the package to include i2c library 0.1.4. It supports multiple pwm chips on the i2c.

I am currently using adafruit-i2c-pwm-driver successfully (after update to i2c 0.1.4) to drive a raspberry shield with two PCA9865 chips by pridopia.co.uk (I know that the adafruit only has one).

Also you might want to include packages using an "x" for the patch i.e.
"i2c" = "0.1.x"

Thank you

Problem to use "adafruit-i2c-pwm-driver" in node.js

I have problem to install/use "adafruit-i2c-pwm-driver" in node.
I have have tried 4.0.0, 5, 6.1.0
It worked great in node 0.10.3

Maybe this?
Latest version for [email protected]

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "adafruit-i2c-pwm-driver"
npm ERR! node v6.1.0
npm ERR! npm v3.8.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm in

Unable to install on rapsberry pi 4

Hi,

I just installed a brand new raspberry pi 4.

I've :
raspbian OS 10
node: 16.9.1
npm: 7.21.1

When I run npm i adafruit-i2c-pwm-driver, I get this error:

pi@arm:~/node-arm $ npm i adafruit-i2c-pwm-driver
npm WARN deprecated [email protected]: CoffeeScript on NPM has moved to "coffeescript" (no hyphen)
npm ERR! code 1
npm ERR! path /home/pi/node-arm/node_modules/i2c
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! make: Entering directory '/home/pi/node-arm/node_modules/i2c/build'
npm ERR!   CXX(target) Release/obj.target/i2c/src/i2c.o
npm ERR! make: Leaving directory '/home/pi/node-arm/node_modules/i2c/build'
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | linux | arm
npm ERR! gyp info find Python using Python version 3.7.3 found at "/usr/bin/python3"
npm ERR! (node:1918) [DEP0150] DeprecationWarning: Setting process.config is deprecated. In the future the property will be read-only.
npm ERR! (Use `node --trace-deprecation ...` to show where the warning was created)
npm ERR! gyp info spawn /usr/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/pi/node-arm/node_modules/i2c/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/home/pi/.cache/node-gyp/16.9.1/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/home/pi/.cache/node-gyp/16.9.1',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/home/pi/.cache/node-gyp/16.9.1/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/home/pi/node-arm/node_modules/i2c',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../../nan/nan.h:190,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
npm ERR! ../../nan/nan_maybe_43_inl.h:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
npm ERR!    return obj->ForceSet(GetCurrentContext(), key, value, attribs);
npm ERR!                ^~~~~~~~
npm ERR! In file included from ../../nan/nan_converters.h:59,
npm ERR!                  from ../../nan/nan.h:195,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:15:45: error: no matching function for call to ‘v8::Value::ToBoolean(v8::Local<v8::Context>)’
npm ERR!    return val->To ## TYPE(GetCurrentContext());                                 \
npm ERR!                                              ^
npm ERR! ../../nan/nan_converters_43_inl.h:18:1: note: in expansion of macro ‘X’
npm ERR!  X(Boolean)
npm ERR!  ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3086:18: note: candidate: ‘v8::Local<v8::Boolean> v8::Value::ToBoolean(v8::Isolate*) const’
npm ERR!    Local<Boolean> ToBoolean(Isolate* isolate) const;
npm ERR!                   ^~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3086:18: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR! In file included from ../../nan/nan_converters.h:59,
npm ERR!                  from ../../nan/nan.h:195,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_converters_43_inl.h:31:48: error: no matching function for call to ‘v8::Value::BooleanValue(v8::Local<v8::Context>)’
npm ERR!    return val->NAME ## Value(GetCurrentContext());                              \
npm ERR!                                                 ^
npm ERR! ../../nan/nan_converters_43_inl.h:34:1: note: in expansion of macro ‘X’
npm ERR!  X(bool, Boolean)
npm ERR!  ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3096:8: note: candidate: ‘bool v8::Value::BooleanValue(v8::Isolate*) const’
npm ERR!    bool BooleanValue(Isolate* isolate) const;
npm ERR!         ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3096:8: note:   no known conversion for argument 1 from ‘v8::Local<v8::Context>’ to ‘v8::Isolate*’
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:196,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:109:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
npm ERR!                            , obj));
npm ERR!                                 ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4751:31: note: candidate: ‘static v8::MaybeLocal<v8::Function> v8::Function::New(v8::Local<v8::Context>, v8::FunctionCallback, v8::Local<v8::Value>, int, v8::ConstructorBehavior, v8::SideEffectType)’
npm ERR!    static MaybeLocal<Function> New(
npm ERR!                                ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4751:31: note:   no known conversion for argument 1 from ‘v8::Isolate*’ to ‘v8::Local<v8::Context>’
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:196,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
npm ERR! ../../nan/nan_implementation_12_inl.h:345:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local<v8::String>&)’
npm ERR!    return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!                                      ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:6194:23: note: candidate: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Isolate*, v8::Local<v8::String>)’
npm ERR!    static Local<Value> New(Isolate* isolate, Local<String> value);
npm ERR!                        ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:6194:23: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../../nan/nan_new.h:189,
npm ERR!                  from ../../nan/nan.h:196,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_implementation_12_inl.h:345:58: error: expected primary-expression before ‘>’ token
npm ERR!    return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!                                                           ^
npm ERR! ../../nan/nan_implementation_12_inl.h:345:60: error: expected primary-expression before ‘)’ token
npm ERR!    return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!                                                             ^
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
npm ERR! ../../nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!          v8::Isolate::GetCurrent(), target, func, argc, argv);
npm ERR!                                                             ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!          v8::Isolate::GetCurrent(), target, func, argc, argv);
npm ERR!                                                             ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
npm ERR! ../../nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!          v8::Isolate::GetCurrent(), target, symbol, argc, argv);
npm ERR!                                                               ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:177:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!          v8::Isolate::GetCurrent(), target, symbol, argc, argv);
npm ERR!                                                               ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:177:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
npm ERR! ../../nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!          v8::Isolate::GetCurrent(), target, method, argc, argv);
npm ERR!                                                               ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:170:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!          v8::Isolate::GetCurrent(), target, method, argc, argv);
npm ERR!                                                               ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:170:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
npm ERR! ../../nan/nan.h:890:53: error: no matching function for call to ‘v8::Value::ToString()’
npm ERR!        v8::Local<v8::String> string = from->ToString();
npm ERR!                                                      ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3048:44: note: candidate: ‘v8::MaybeLocal<v8::String> v8::Value::ToString(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!                                             ^~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3048:44: note:   candidate expects 1 argument, 0 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:900:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’
npm ERR!          length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
npm ERR!                                                                           ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3277:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate*, char*, int, int*, int) const’
npm ERR!    int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!        ^~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3277:7: note:   no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘bool Nan::Callback::operator==(const Nan::Callback&) const’:
npm ERR! ../../nan/nan.h:1371:61: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!      v8::Local<v8::Value> a = New(handle)->Get(kCallbackIndex);
npm ERR!                                                              ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:1372:67: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!      v8::Local<v8::Value> b = New(other.handle)->Get(kCallbackIndex);
npm ERR!                                                                    ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Function> Nan::Callback::GetFunction() const’:
npm ERR! ../../nan/nan.h:1403:56: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!      return scope.Escape(New(handle)->Get(kCallbackIndex)
npm ERR!                                                         ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:1404:25: error: expected primary-expression before ‘>’ token
npm ERR!          .As<v8::Function>());
npm ERR!                          ^
npm ERR! ../../nan/nan.h:1404:27: error: expected primary-expression before ‘)’ token
npm ERR!          .As<v8::Function>());
npm ERR!                            ^
npm ERR! ../../nan/nan.h: In member function ‘bool Nan::Callback::IsEmpty() const’:
npm ERR! ../../nan/nan.h:1409:43: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!      return New(handle)->Get(kCallbackIndex)->IsUndefined();
npm ERR!                                            ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
npm ERR! ../../nan/nan.h:1447:27: error: no matching function for call to ‘v8::Object::Get(const uint32_t&)’
npm ERR!          Get(kCallbackIndex).As<v8::Function>();
npm ERR!                            ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:1447:44: error: expected primary-expression before ‘>’ token
npm ERR!          Get(kCallbackIndex).As<v8::Function>();
npm ERR!                                             ^
npm ERR! ../../nan/nan.h:1447:46: error: expected primary-expression before ‘)’ token
npm ERR!          Get(kCallbackIndex).As<v8::Function>();
npm ERR!                                               ^
npm ERR! ../../nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!      ));
npm ERR!      ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
npm ERR!      ));
npm ERR!      ^
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:184:50: note: declared here
npm ERR!                  NODE_EXTERN v8::Local<v8::Value> MakeCallback(
npm ERR!                                                   ^~~~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’
npm ERR!      __attribute__((deprecated(message))) declarator
npm ERR!                                           ^~~~~~~~~~
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char*, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1518:64: error: no matching function for call to ‘v8::Object::Set(v8::Local<v8::String>, const v8::Local<v8::Value>&)’
npm ERR!      New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR!                                                                 ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1524:42: error: no matching function for call to ‘v8::Object::Set(const v8::Local<v8::String>&, const v8::Local<v8::Value>&)’
npm ERR!      New(persistentHandle)->Set(key, value);
npm ERR!                                           ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local<v8::Value>&)’:
npm ERR! ../../nan/nan.h:1530:44: error: no matching function for call to ‘v8::Object::Set(uint32_t&, const v8::Local<v8::Value>&)’
npm ERR!      New(persistentHandle)->Set(index, value);
npm ERR!                                             ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const char*) const’:
npm ERR! ../../nan/nan.h:1536:61: error: no matching function for call to ‘v8::Object::Get(v8::Local<v8::String>)’
npm ERR!          New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR!                                                              ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(const v8::Local<v8::String>&) const’:
npm ERR! ../../nan/nan.h:1542:55: error: no matching function for call to ‘v8::Object::Get(const v8::Local<v8::String>&)’
npm ERR!      return scope.Escape(New(persistentHandle)->Get(key));
npm ERR!                                                        ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
npm ERR! ../../nan/nan.h:1547:57: error: no matching function for call to ‘v8::Object::Get(uint32_t&)’
npm ERR!      return scope.Escape(New(persistentHandle)->Get(index));
npm ERR!                                                          ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4007:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note: candidate: ‘v8::MaybeLocal<v8::Value> v8::Object::Get(v8::Local<v8::Context>, uint32_t)’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                            ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:4010:43: note:   candidate expects 2 arguments, 1 provided
npm ERR! In file included from ../src/i2c.cc:3:
npm ERR! ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
npm ERR! ../../nan/nan.h:1706:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
npm ERR!      , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
npm ERR!                                                               ^
npm ERR! In file included from /usr/include/c++/8/cassert:44,
npm ERR!                  from /home/pi/.cache/node-gyp/16.9.1/include/node/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:49,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
npm ERR! ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!      assert(persistent().IsNearDeath());
npm ERR!                          ^~~~~~~~~~~
npm ERR! In file included from ../../nan/nan.h:2192,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’:
npm ERR! ../../nan/nan_object_wrap.h:67:18: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘MarkIndependent’
npm ERR!      persistent().MarkIndependent();
npm ERR!                   ^~~~~~~~~~~~~~~
npm ERR! In file included from /usr/include/c++/8/cassert:44,
npm ERR!                  from /home/pi/.cache/node-gyp/16.9.1/include/node/node_object_wrap.h:26,
npm ERR!                  from ../../nan/nan.h:49,
npm ERR!                  from ../src/i2c.cc:3:
npm ERR! ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’:
npm ERR! ../../nan/nan_object_wrap.h:124:26: error: ‘class Nan::Persistent<v8::Object>’ has no member named ‘IsNearDeath’
npm ERR!      assert(wrap->handle_.IsNearDeath());
npm ERR!                           ^~~~~~~~~~~
npm ERR! ../src/i2c.cc: In function ‘void SetAddress(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:38:30: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    addr = info[0]->Int32Value();
npm ERR!                               ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc: In function ‘void Scan(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:60:43: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR!      results->Set(i, Nan::New<Integer>(res));
npm ERR!                                            ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/i2c.cc: In function ‘void Open(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:84:35: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’
npm ERR!    String::Utf8Value device(info[0]);
npm ERR!                                    ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3581:5: note: candidate: ‘v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)’
npm ERR!      Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!      ^~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3581:5: note:   candidate expects 2 arguments, 1 provided
npm ERR! ../src/i2c.cc: In function ‘void Read(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:103:33: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    int len = info[0]->Int32Value();
npm ERR!                                  ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc:114:45: error: no matching function for call to ‘v8::Array::Set(int&, Nan::imp::IntegerFactory<v8::Integer>::return_t)’
npm ERR!        data->Set(i, Nan::New<Integer>(buf[i]));
npm ERR!                                              ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3961:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note: candidate: ‘v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                      ^~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3964:37: note:   candidate expects 3 arguments, 2 provided
npm ERR! ../src/i2c.cc: In function ‘void ReadBlock(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:154:36: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    int8_t cmd = info[0]->Int32Value();
npm ERR!                                     ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc:155:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    int32_t len = info[1]->Int32Value();
npm ERR!                                      ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc:178:43: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!        int32_t delay = info[2]->Int32Value();
npm ERR!                                            ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc: In function ‘void Write(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:193:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    int   len = node::Buffer::Length(buffer->ToObject());
npm ERR!                                                      ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!                                             ^~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc:194:52: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    char* data = node::Buffer::Data(buffer->ToObject());
npm ERR!                                                     ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!                                             ^~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc: In function ‘void WriteByte(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:213:37: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    int8_t byte = info[0]->Int32Value();
npm ERR!                                      ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc: In function ‘void WriteBlock(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:232:36: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    int8_t cmd = info[0]->Int32Value();
npm ERR!                                     ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc:233:53: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    int   len = node::Buffer::Length(buffer->ToObject());
npm ERR!                                                      ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!                                             ^~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc:234:52: error: no matching function for call to ‘v8::Value::ToObject()’
npm ERR!    char* data = node::Buffer::Data(buffer->ToObject());
npm ERR!                                                     ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note: candidate: ‘v8::MaybeLocal<v8::Object> v8::Value::ToObject(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT MaybeLocal<Object> ToObject(
npm ERR!                                             ^~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3060:44: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc: In function ‘void WriteWord(const Nan::FunctionCallbackInfo<v8::Value>&)’:
npm ERR! ../src/i2c.cc:253:36: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    int8_t cmd = info[0]->Int32Value();
npm ERR!                                     ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc:254:38: error: no matching function for call to ‘v8::Value::Int32Value()’
npm ERR!    int16_t word = info[1]->Int32Value();
npm ERR!                                       ^
npm ERR! In file included from /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:63,
npm ERR!                  from ../src/i2c.cc:1:
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note: candidate: ‘v8::Maybe<int> v8::Value::Int32Value(v8::Local<v8::Context>) const’
npm ERR!    V8_WARN_UNUSED_RESULT Maybe<int32_t> Int32Value(Local<Context> context) const;
npm ERR!                                         ^~~~~~~~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/v8.h:3107:40: note:   candidate expects 1 argument, 0 provided
npm ERR! ../src/i2c.cc: At global scope:
npm ERR! ../src/i2c.cc:270:11: error: variable or field ‘Init’ declared void
npm ERR!  void Init(Handle<Object> exports) {
npm ERR!            ^~~~~~
npm ERR! ../src/i2c.cc:270:11: error: ‘Handle’ was not declared in this scope
npm ERR! ../src/i2c.cc:270:11: note: suggested alternative: ‘rand_r’
npm ERR!  void Init(Handle<Object> exports) {
npm ERR!            ^~~~~~
npm ERR!            rand_r
npm ERR! ../src/i2c.cc:270:24: error: expected primary-expression before ‘>’ token
npm ERR!  void Init(Handle<Object> exports) {
npm ERR!                         ^
npm ERR! ../src/i2c.cc:270:26: error: ‘exports’ was not declared in this scope
npm ERR!  void Init(Handle<Object> exports) {
npm ERR!                           ^~~~~~~
npm ERR! In file included from ../src/i2c.cc:1:
npm ERR! ../src/i2c.cc:295:18: error: ‘Init’ was not declared in this scope
npm ERR!  NODE_MODULE(i2c, Init)
npm ERR!                   ^~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:810:36: note: in definition of macro ‘NODE_MODULE_X’
npm ERR!        (node::addon_register_func) (regfunc),                          \
npm ERR!                                     ^~~~~~~
npm ERR! ../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!  NODE_MODULE(i2c, Init)
npm ERR!  ^~~~~~~~~~~
npm ERR! ../src/i2c.cc:295:18: note: suggested alternative: ‘exit’
npm ERR!  NODE_MODULE(i2c, Init)
npm ERR!                   ^~~~
npm ERR! /home/pi/.cache/node-gyp/16.9.1/include/node/node.h:810:36: note: in definition of macro ‘NODE_MODULE_X’
npm ERR!        (node::addon_register_func) (regfunc),                          \
npm ERR!                                     ^~~~~~~
npm ERR! ../src/i2c.cc:295:1: note: in expansion of macro ‘NODE_MODULE’
npm ERR!  NODE_MODULE(i2c, Init)
npm ERR!  ^~~~~~~~~~~
npm ERR! make: *** [i2c.target.mk:111: Release/obj.target/i2c/src/i2c.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:394:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)
npm ERR! gyp ERR! System Linux 5.10.60-v7l+
npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /home/pi/node-arm/node_modules/i2c
npm ERR! gyp ERR! node -v v16.9.1
npm ERR! gyp ERR! node-gyp -v v7.1.2
npm ERR! gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2021-09-18T15_22_49_113Z-debug.log

Sorry for the long error. I've installed the build-essential package with apt-get.

What am I missing?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.