Skip to content

Conversation

@staalb
Copy link

@staalb staalb commented Jan 4, 2026

Necessary to get a RGB LED bulb working (Action LSC SMART GLS A60 SMD 220-240V 8W 700lm RGB + 2700-6500K E27). It has a SM2185N controller, which seems to work with the SM2235 driver. However because the frequency of the CLK line is too high, the SM2185N controller often misinterprets frames. When turning on or off the LED, changing the brightness or color random thing happen.

Therefore, this change makes it possible to lower the clock frequency using a new command: SoftI2C_SetClkPeriod. The default period is 4, setting it to 40 seems to be fine.

This change also removes a duplicate definition of SM2135_DELAY.

I will make a forum post with more details about this device.

staalb added 2 commits January 4, 2026 15:42
This macro is also defined in drv_local.h. Only user of
drv_sm2235.h is drv_sm2235.c, which also included drv_local.h.
Default setting of 4 seems to fast for a SM2185N controller.
@staalb staalb changed the title Fix I2C clock frequency for SM2185N Make soft I2C clock frequency configurable Jan 4, 2026
@staalb
Copy link
Author

staalb commented Jan 4, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant