
smoothie port to mbed online compiler (smoothieware.org)
For documentation, license, ..., please check http://smoothieware.org/
This version has been tested with a 3 axis machine
Diff: modules/utils/pausebutton/PauseButton.h
- Revision:
- 0:31e91bb0ef3c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/utils/pausebutton/PauseButton.h Tue Jul 31 21:11:18 2012 +0000 @@ -0,0 +1,37 @@ +#ifndef PAUSEBUTTON_H +#define PAUSEBUTTON_H + +#include "libs/Kernel.h" +#include "libs/nuts_bolts.h" +#include "libs/utils.h" +#include "libs/Pin.h" + +#define pause_button_pin_checksum 32709 +#define pause_led_pin_checksum 48477 + +class PauseButton : public Module { + public: + PauseButton(); + + virtual void on_module_loaded(); + uint32_t button_tick(uint32_t dummy); + virtual void on_play( void* argument ); + virtual void on_pause( void* argument ); + + Pin* button; + Pin* led; + bool button_state; + bool play_state; +}; + + + + + + + + + + + +#endif