Using ESP to make a mobile color temperature meter
LOLIN32 D1 ESP32 Board (with Li-Po charger)
TCS-34725 Sensor
0.96" SSD1306 OLED Display
600mAh 3.7V Li-Po Rechargeable Battery
Using ESP32 to make a mobile color temperature meter
Using ESP to make a mobile color temperature meter
LOLIN32 D1 ESP32 Board (with Li-Po charger)
TCS-34725 Sensor
0.96" SSD1306 OLED Display
600mAh 3.7V Li-Po Rechargeable Battery
再编译时提示这个错误,劳烦大佬帮看看是什么问题
In file included from C:\Users\Jiang\Downloads\Compressed\ESP-CTMeter-master\ESP-CTMeter-master\ESP-CTMeter\tcs34725.cpp:2:
tcs34725.h:44:5: error: 'tcs34725IntegrationTime_t' does not name a type; did you mean 'tcs34725Gain_t'?
tcs34725IntegrationTime_t at;
^~~~~~~~~~~~~~~~~~~~~~~~~
tcs34725Gain_t
tcs34725.cpp:13:24: error: 'TCS34725_INTEGRATIONTIME_700MS' was not declared in this scope
{ TCS34725_GAIN_60X, TCS34725_INTEGRATIONTIME_700MS, 0, 20000 },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\Jiang\Downloads\Compressed\ESP-CTMeter-master\ESP-CTMeter-master\ESP-CTMeter\tcs34725.cpp:13:24: note: suggested alternative: 'TCS34725_INTEGRATIONTIME_300MS'
{ TCS34725_GAIN_60X, TCS34725_INTEGRATIONTIME_700MS, 0, 20000 },
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TCS34725_INTEGRATIONTIME_300MS
C:\Users\Jiang\Downloads\Compressed\ESP-CTMeter-master\ESP-CTMeter-master\ESP-CTMeter\tcs34725.cpp: In member function 'boolean tcs34725::begin()':
tcs34725.cpp:24:44: error: 'const struct tcs34725::tcs_agc' has no member named 'at'; did you mean 'ag'?
tcs = Adafruit_TCS34725(agc_lst[agc_cur].at, agc_lst[agc_cur].ag);
^~
ag
C:\Users\Jiang\Downloads\Compressed\ESP-CTMeter-master\ESP-CTMeter-master\ESP-CTMeter\tcs34725.cpp: In member function 'void tcs34725::setGainTime()':
tcs34725.cpp:36:43: error: 'const struct tcs34725::tcs_agc' has no member named 'at'; did you mean 'ag'?
tcs.setIntegrationTime(agc_lst[agc_cur].at);
^~
ag
tcs34725.cpp:37:32: error: 'const struct tcs34725::tcs_agc' has no member named 'at'; did you mean 'ag'?
atime = int(agc_lst[agc_cur].at);
^~
ag
In file included from C:\Users\Jiang\Downloads\Compressed\ESP-CTMeter-master\ESP-CTMeter-master\ESP-CTMeter\ESP-CTMeter.ino:4:
tcs34725.h:44:5: error: 'tcs34725IntegrationTime_t' does not name a type; did you mean 'tcs34725Gain_t'?
tcs34725IntegrationTime_t at;
^~~~~~~~~~~~~~~~~~~~~~~~~
tcs34725Gain_t
exit status 1
'tcs34725IntegrationTime_t' does not name a type; did you mean 'tcs34725Gain_t'?
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.