Code Monkey home page Code Monkey logo

esp-ctmeter's Introduction

Using ESP to make a mobile color temperature meter

Using Components

LOLIN32 D1 ESP32 Board (with Li-Po charger)

TCS-34725 Sensor

0.96" SSD1306 OLED Display

600mAh 3.7V Li-Po Rechargeable Battery

Diagram

Diagram

Video Demo

https://www.bilibili.com/video/av63124862/

esp-ctmeter's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

esp-ctmeter's Issues

编译时报错

再编译时提示这个错误,劳烦大佬帮看看是什么问题

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'?

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.