[riot-notifications] [RIOT-OS/RIOT] drivers: support for NXP PCA9685 I2C 16-channel, 12-bit PWM controller (#10556)

Gunar Schorcht notifications at github.com
Sun Sep 15 19:18:42 CEST 2019


@mrusme

> However, beside the requirement to be compatible with the built-in PWM driver API, the extener driver could implement additional features, e.g., to set an option and to define an additional function which allows to synchronize channel settings by aquiring the I2C bus as long as it is released explicitly.

I could imagine to add a member `bool sync_setting` to struct `pca9685_params_t` which is set to `false` by default. This member can be set in parameters to `true`, if synchronized setting is required. If synchronized setting is required, the first call of `pca9685_pwm_set` aquires the I2C bus. An additional function `pca9685_set_sync` releases the I2C bus.

With this approach, the extender can be used as defined by the built-in PWM API, but the user has the option to use synchronized setting too.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10556#issuecomment-531583298
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190915/854eab4f/attachment.htm>


More information about the notifications mailing list