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
Diff: modules/tools/switch/SwitchPublicAccess.h
- Revision:
- 2:1df0b61d3b5a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/tools/switch/SwitchPublicAccess.h Fri Feb 28 18:52:52 2014 -0800 @@ -0,0 +1,16 @@ +#ifndef __SWITCHPUBLICACCESS_H +#define __SWITCHPUBLICACCESS_H + +// addresses used for public data access +#define switch_checksum CHECKSUM("switch") +#define fan_checksum CHECKSUM("fan") +#define state_checksum CHECKSUM("state") +#define value_checksum CHECKSUM("value") + +struct pad_switch { + int name; + bool state; + float value; +}; + +#endif // __SWITCHPUBLICACCESS_H