demo sample to drive PCU9955 and PCA9629

Dependencies:   mbed I2C_slaves PCU9669 parallel_bus

Fork of mini_board_PCU9669 by InetrfaceProducts NXP

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers demo_patterns.h Source File

demo_patterns.h

00001 #define     N_LED_PER_BOARD 15
00002 #define     N_OF_LED_BOARD  8
00003 #define     N_OF_LEDS       (N_LED_PER_BOARD * N_OF_LED_BOARD)
00004 
00005 /** @def PWM_INIT / IREF_INIT
00006  *
00007  *  Initial value for the PWMn and IREFn registers
00008  */
00009 #define     PWM_INIT        0x00
00010 #define     IREF_INIT       0xFF
00011 
00012 extern char    gLEDs[ N_OF_LEDS ];
00013 extern int     gCount;
00014 
00015 void pattern_update( int count );
00016 
00017 void ramp_all_PCA9629( void );
00018 void vib_all_PCA9629( void );
00019 void start_all_PCA9629( void );
00020 void stop_all_PCA9629( void );
00021 void align_all_PCA9629( void );