<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Color Sensor UiFlow or micropython code]]></title><description><![CDATA[<p dir="auto">hello, just purchased Color Sensor  module and want to use in micropython (or inflow)<br />
on wiki page <a href="https://docs.m5stack.com/#/en/unit/color" target="_blank" rel="noopener noreferrer nofollow ugc">wiki</a> can't find code or info ...<br />
Anyone get this working ?</p>
<p dir="auto">thanks</p>
]]></description><link>https://community.m5stack.com/topic/446/color-sensor-uiflow-or-micropython-code</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 04:57:08 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/446.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 Dec 2018 14:35:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Color Sensor UiFlow or micropython code on Thu, 27 Dec 2018 22:22:33 GMT]]></title><description><![CDATA[<p dir="auto">thanks it works great used <a href="https://github.com/adafruit/micropython-adafruit-tcs34725/blob/master/tcs34725.py" target="_blank" rel="noopener noreferrer nofollow ugc">this library</a><br />
and this basic code to test<br />
import tcs34725<br />
import time<br />
from machine import I2C, Pin<br />
i2c = I2C(0, sda=21, scl=22)<br />
sensor = tcs34725.TCS34725(i2c)<br />
print(sensor.read(True))</p>
]]></description><link>https://community.m5stack.com/post/2246</link><guid isPermaLink="true">https://community.m5stack.com/post/2246</guid><dc:creator><![CDATA[devros]]></dc:creator><pubDate>Thu, 27 Dec 2018 22:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to Color Sensor UiFlow or micropython code on Mon, 24 Dec 2018 06:23:08 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/devros" aria-label="Profile: devros">@<bdi>devros</bdi></a> Hi there, my apologies that we haven't got around to adding the colour sensor functionality in uiflow yet we only have examples for programming it with [arduino].(<a href="https://github.com/m5stack/M5Stack/tree/master/examples/Unit/Color" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/m5stack/M5Stack/tree/master/examples/Unit/Color</a>) However there is a micropython library for this sensor which you can find <a href="https://github.com/adafruit/Adafruit_TCS34725" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> and some examples and documentation <a href="https://micropython-tcs34725.readthedocs.io/en/latest/" target="_blank" rel="noopener noreferrer nofollow ugc">here</a> . If you don't know how to get the library on to your m5stack follow this <a href="https://www.youtube.com/watch?v=rvP3GixWG1Y" target="_blank" rel="noopener noreferrer nofollow ugc">tutorial</a></p>
<p dir="auto">Hope this helps, let us know how you get on.</p>
<p dir="auto">Luke</p>
]]></description><link>https://community.m5stack.com/post/2225</link><guid isPermaLink="true">https://community.m5stack.com/post/2225</guid><dc:creator><![CDATA[lukasmaximus]]></dc:creator><pubDate>Mon, 24 Dec 2018 06:23:08 GMT</pubDate></item></channel></rss>