Coder Social home page Coder Social logo

atsha204_i2c's People

Contributors

mengguang avatar

Stargazers

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

Watchers

 avatar  avatar

atsha204_i2c's Issues

编译不通过

前辈你好,
已经把Wire.里的BUFFER_LENGTH设为100,但还是编译不通过。请问怎么破?
你是修改过Wire这个库吗?

D:\Program Files\arduino-1.8.3\libraries\atsha204_i2c\src\sha204_i2c.cpp: In constructor 'atsha204Class::atsha204Class()':

D:\Program Files\arduino-1.8.3\libraries\atsha204_i2c\src\sha204_i2c.cpp:9:17: error: no matching function for call to 'TwoWire::begin(int, int)'

Wire.begin(4, 5);

             ^

D:\Program Files\arduino-1.8.3\libraries\atsha204_i2c\src\sha204_i2c.cpp:9:17: note: candidates are:

In file included from D:\Program Files\arduino-1.8.3\libraries\atsha204_i2c\src\sha204_i2c.cpp:5:0:

D:\Program Files\arduino-1.8.3\hardware\arduino\avr\libraries\Wire\src/Wire.h:52:10: note: void TwoWire::begin()

 void begin();

      ^

D:\Program Files\arduino-1.8.3\hardware\arduino\avr\libraries\Wire\src/Wire.h:52:10: note: candidate expects 0 arguments, 2 provided

D:\Program Files\arduino-1.8.3\hardware\arduino\avr\libraries\Wire\src/Wire.h:53:10: note: void TwoWire::begin(uint8_t)

 void begin(uint8_t);

      ^

D:\Program Files\arduino-1.8.3\hardware\arduino\avr\libraries\Wire\src/Wire.h:53:10: note: candidate expects 1 argument, 2 provided

D:\Program Files\arduino-1.8.3\hardware\arduino\avr\libraries\Wire\src/Wire.h:54:10: note: void TwoWire::begin(int)

 void begin(int);

      ^

D:\Program Files\arduino-1.8.3\hardware\arduino\avr\libraries\Wire\src/Wire.h:54:10: note: candidate expects 1 argument, 2 provided

D:\Program Files\arduino-1.8.3\libraries\atsha204_i2c\src\sha204_i2c.cpp: At global scope:

remember to set BUFFER_LENGTH to at 64 in Wire.h

Tested this library, and had error response F0 and E7.
Then, noticed "remember to set BUFFER_LENGTH to at 64 in Wire.h"

Replaced the comment with
#if BUFFER_LENGTH != 64 #error "set BUFFER_LENGTH to 64 in Wire.h" #endif
Error message appears in platformio when compiling.

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.