Well according to the TinyPico website the APA102 is connected to
Data GPIO2
Clk GPIO12
Power GPIO13
You would just need to read the datasheet for how to get the PWM data configured but some of the standard RGB stuff may work
If not the DotStar Library may help
mattytrentini/micropython-dotstar: Dotstarrin' away in MicroPython! (github.com)
Sent from Mail for Windows
From: 'jonrus...@googlemail.com' via TasmotaUsers
Sent: 19 October 2021 13:07
To: TasmotaUsers
Subject: How to configure an APA102 RGB LED on an ESP32 TinyPico ?
Hi,
I have Tasmota running on a TinyPico, but I'm struggling to get the onboard RGB LED working. Maybe I'm just being stupid.
I cant seem to find how to configure the APA102 RGB LED. Is it supported by Tasomota? its a two line RGB LED. Data & Clock.
I cant find many mentions of the APA102 in the source code. Is it known by another more generic name?
Any pointers gratefully received.
Thanks.
Jon.
--
You received this message because you are subscribed to the Google Groups "TasmotaUsers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonoffusers...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/43308b19-cb9c-47e8-bce7-1b61c406312bn%40googlegroups.com.
There are some issues in GitHub which it might be worth reading but I suspect you may need to compile your own
From: 'jonrus...@googlemail.com' via TasmotaUsers
Sent: 25 October 2021 16:34
To: TasmotaUsers
Subject: Re: How to configure an APA102 RGB LED on an ESP32 TinyPico ?
Thanks for the reply.
My question is more about the Tasmota config.
One wire RGB LEDs are easy to configure in Tasmota, by selecting the correct pin as "WS2812" in the interface.
But this is a two wire RGB LED with Clock and Data.
I cant find the option, or any mention in the code or documentation, on how to select the Data and Clock pins for the APA102 in the Tasmota config.
Apparently the NeoPixel library Tasmota includes, does mention support for APA102
"A library to control one wire protocol RGB and RGBW leds like APA106, SK6812, WS2811, WS2812 and WS2813 that are commonly referred to as NeoPixels and two wire protocol RGB like Lpd8806, APA102 and SK9822 commonly referred to as DotStars. Supports most Arduino platforms."
But I cant find anywhere in the code where I can enable two wire RGB LEDs so there is, for example, "APA102_CLK" & "APA102_DAT" in the Tasmota configure dropdowns.
Thanks!
Jon.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonoffusers/349129b1-be7e-493d-bd54-12f400588718n%40googlegroups.com.