TCS34725 Adafruit Color sensor

Discussion about Z-Uno product. Visit http://z-uno.z-wave.me for more details.
Post Reply
Manurev
Posts: 24
Joined: 30 Apr 2023 19:35

TCS34725 Adafruit Color sensor

Post by Manurev »

Is it possible to integrate the adafruit TCS34725 color sensor into the Z1-2 Module Sketch? With the arduino IDE?

https://github.com/adafruit/Adafruit_TCS34725

Thanks in advance.
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

Re: TCS34725 Adafruit Color sensor

Post by PoltoS »

At the first glance, should be pretty easy to adopt: change all appearances of i2c_dev to a corresponding Z-Uno I2C lib. Check https://z-uno.z-wave.me/Reference/Wire/ for more info.

You are welcome to add it to the Z-Uno library as a Pull Request to https://github.com/Z-Wave-Me/Z-Uno-G2-C ... /libraries
Manurev
Posts: 24
Joined: 30 Apr 2023 19:35

Re: TCS34725 Adafruit Color sensor

Post by Manurev »

Hello, thank you very much for the response.
I understand that you are telling me that I could put it in the Zuno2 library as a change request, but the truth is, I still don't have the necessary knowledge, I don't even know how to use Github well, I would like to, and be able to contribute everything to the forum. the possible.
Could you give me some indication of how to do it? Or can you request it?
Thanks greetings
User avatar
PoltoS
Posts: 7624
Joined: 26 Jan 2011 19:36

Re: TCS34725 Adafruit Color sensor

Post by PoltoS »

You can copy this lib (the .cpp and .h files) to a folder inside libs (create one) and then change all I²C commands to the corresponding I²C commands in Z-Uno SDK. Once it works, we can guide you how to contribute (or just send to us and we put it in git)
Post Reply