Fork of Smoothie to port to mbed non-LPC targets.

Dependencies:   mbed

Fork of Smoothie by Stéphane Cachat

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PlayLed.h Source File

PlayLed.h

00001 #ifndef _PLAYLED_H
00002 #define _PLAYLED_H
00003 
00004 #include "libs/Kernel.h"
00005 #include "libs/Pin.h"
00006 
00007 #define pause_led_pin_checksum      CHECKSUM("pause_led_pin")
00008 #define play_led_pin_checksum       CHECKSUM("play_led_pin")
00009 
00010 class PlayLed : public Module {
00011 public:
00012     PlayLed();
00013 
00014     void on_module_loaded(void);
00015 
00016     void on_config_reload(void*);
00017 
00018     void on_play(         void*);
00019     void on_block_begin(  void*);
00020     void on_block_end(    void*);
00021 
00022     uint32_t half_second_tick(uint32_t);
00023 
00024     Pin  led;
00025 };
00026 
00027 #endif /* _PLAYLED_H */