Add #define USE_PCA9685_FREQ 50 if not defined

Add #define USE_PCA9685_FREQ 50 if not defined in user_config.h
This commit is contained in:
andrethomas 2018-09-30 23:33:14 +02:00 committed by GitHub
parent ee0ef227dc
commit 068211cae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,10 @@
#define PCA9685_REG_LED0_ON_L 0x06
#define PCA9685_REG_PRE_SCALE 0xFE
#ifndef USE_PCA9685_FREQ
#define USE_PCA9685_FREQ 50
#endif
uint8_t pca9685_detected = 0;
uint16_t pca9685_freq = USE_PCA9685_FREQ;