Version 3 pour le majeur et l'index

Dependencies:   mbed

Committer:
MoussOudj
Date:
Thu Jun 21 16:29:18 2018 +0000
Revision:
0:72bac9981dc5
XBEE_RECEIVER_V3

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MoussOudj 0:72bac9981dc5 1 #ifndef PCA9685_LIBRARY_DEFINITIONS_H
MoussOudj 0:72bac9981dc5 2 #define PCA9685_LIBRARY_DEFINITIONS_H
MoussOudj 0:72bac9981dc5 3
MoussOudj 0:72bac9981dc5 4 #define ADDR 0x80
MoussOudj 0:72bac9981dc5 5
MoussOudj 0:72bac9981dc5 6 #define MODE1 0x0
MoussOudj 0:72bac9981dc5 7 #define MODE2 0x1
MoussOudj 0:72bac9981dc5 8 #define PRESCALE 0xFE
MoussOudj 0:72bac9981dc5 9
MoussOudj 0:72bac9981dc5 10 #define LED0_ON_L 0x6
MoussOudj 0:72bac9981dc5 11 #define LED0_ON_H 0x7
MoussOudj 0:72bac9981dc5 12 #define LED0_OFF_L 0x8
MoussOudj 0:72bac9981dc5 13 #define LED0_OFF_H 0x9
MoussOudj 0:72bac9981dc5 14
MoussOudj 0:72bac9981dc5 15 #define ALLLED_ON_L 0xFA
MoussOudj 0:72bac9981dc5 16 #define ALLLED_ON_H 0xFB
MoussOudj 0:72bac9981dc5 17 #define ALLLED_OFF_L 0xFC
MoussOudj 0:72bac9981dc5 18 #define ALLLED_OFF_H 0xFD
MoussOudj 0:72bac9981dc5 19
MoussOudj 0:72bac9981dc5 20 #define OSC_CLOCK 25e6
MoussOudj 0:72bac9981dc5 21
MoussOudj 0:72bac9981dc5 22 #define PWM_SCALER 0.90425 //set by manual calibration - ratio of FREQUENCY_SET:ACTUAL_OUTPUT
MoussOudj 0:72bac9981dc5 23
MoussOudj 0:72bac9981dc5 24 #endif