A Jedi light saber controller program with the following "features": - Using RGB LEDs - User can change light colors with a button - Motion dependent (PWM) sounds with a MPU6050 motion sensor - Low voltage detection
Dependencies: L152RE_USBDevice STM32_USB48MHz Watchdog mbed
Diff: LightSaber.h
- Revision:
- 3:0c2d9355ed8c
- Parent:
- 2:59a7d4677474
diff -r 59a7d4677474 -r 0c2d9355ed8c LightSaber.h --- a/LightSaber.h Thu Mar 24 22:42:59 2016 +0000 +++ b/LightSaber.h Sat Mar 26 21:03:35 2016 +0000 @@ -32,3 +32,4 @@ void mpu_calc_avg(MPU_data_type * MPU_data,int mpu_pointer, MPU_data_type * MPU_avg_data, int avg_len); void init_color(int *new_color, int pulsewidth); void change_color(color_type new_color, int new_pulsewidth); +bool sound_player(const int sound_table[][6], int table_lines);