Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Smoothie by
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_enable_checksum CHECKSUM("pause_button_enable") 00010 #define pause_button_pin_checksum CHECKSUM("pause_button_pin") 00011 00012 class PauseButton; 00013 class PauseButton : public Module { 00014 public: 00015 PauseButton(); 00016 00017 void on_module_loaded(); 00018 uint32_t button_tick(uint32_t dummy); 00019 00020 bool enable; 00021 Pin button; 00022 bool button_state; 00023 bool play_state; 00024 }; 00025 00026 #endif
Generated on Tue Jul 12 2022 20:09:02 by
1.7.2
