2018-12-06 09:47:25 +01:00
|
|
|
# PCA9685 I2C PWM controller
|
|
|
|
|
|
|
|
## Overview
|
|
|
|
|
2022-11-24 14:53:48 +01:00
|
|
|
This test application demonstrates the usage of the PCA9685 driver interface
|
2018-12-06 09:47:25 +01:00
|
|
|
and can be used to test each PCA9685 PWM device with shell commands.
|
|
|
|
|
|
|
|
The application bases on the test application for PWM peripheral drivers
|
|
|
|
which is under following copyright:
|
|
|
|
|
|
|
|
Copyright (C) 2014-2015 Freie Universität Berlin
|
|
|
|
@author Hauke Petersen <hauke.petersen@fu-berlin.de>
|
|
|
|
@author Semjon Kerner <semjon.kerner@fu-berlin.de>
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
To use the test application, compile it with
|
|
|
|
```
|
2023-05-06 15:38:21 +02:00
|
|
|
make -C tests/drivers/pca9685 BOARD=...
|
2018-12-06 09:47:25 +01:00
|
|
|
```
|
|
|
|
Please check the default configuration parameters in
|
|
|
|
`$(RIOTBASE)/drivers/pca9685/include/pca9685_params.h` and adopt them
|
|
|
|
if necessary.
|
|
|
|
|
|
|
|
If the active LOW output enable pin /OE is used, the GPIO has to be defined
|
|
|
|
as parameter, e.g.
|
|
|
|
```
|
|
|
|
CFLAGS="-DPCA9685_PARAM_INT_PIN=\(GPIO\(0,6\)\)" \
|
2023-05-06 15:38:21 +02:00
|
|
|
make -C tests/drivers/pca9685 BOARD=...
|
2018-12-06 09:47:25 +01:00
|
|
|
```
|