Stéphane Cachat
/
Smoothie
smoothie port to mbed online compiler (smoothieware.org)
Embed:
(wiki syntax)
Show/hide line numbers
PauseButton.h
00001 #ifndef PAUSEBUTTON_H 00002 #define PAUSEBUTTON_H 00003 00004 #include "libs/Kernel.h" 00005 #include "libs/nuts_bolts.h" 00006 #include "libs/utils.h" 00007 #include "libs/Pin.h" 00008 00009 #define pause_button_pin_checksum 32709 00010 #define pause_led_pin_checksum 48477 00011 00012 class PauseButton : public Module { 00013 public: 00014 PauseButton(); 00015 00016 virtual void on_module_loaded(); 00017 uint32_t button_tick(uint32_t dummy); 00018 virtual void on_play( void* argument ); 00019 virtual void on_pause( void* argument ); 00020 00021 Pin* button; 00022 Pin* led; 00023 bool button_state; 00024 bool play_state; 00025 }; 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 #endif
Generated on Tue Jul 12 2022 14:14:41 by 1.7.2