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 FivePosSwitch by
Diff: FivePosSwitch.h
- Revision:
- 5:413df8008ce3
- Parent:
- 4:10c4b7cb4e8c
--- a/FivePosSwitch.h Sun Oct 04 20:07:52 2015 +0000 +++ b/FivePosSwitch.h Thu Oct 08 23:54:31 2015 +0000 @@ -48,7 +48,7 @@ #define FIVE_POS_SWITCH #include "mbed.h" -enum ACTIVE_POSITION{NONE, UP, CENTER, LEFT, DOWN, RIGHT}; +enum ACTIVE_POSITION{NONE = 0, UP = -1, CENTER = -2, LEFT = -3, DOWN = -4, RIGHT = -5}; class FivePosSwitch{ public: