mengguang / atsha204_i2c Goto Github PK
View Code? Open in Web Editor NEWArduino Library for Atmel CryptoAuthentication ATSHA204A chip
License: Other
Arduino Library for Atmel CryptoAuthentication ATSHA204A chip
License: Other
前辈你好,
已经把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:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.