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.
Input/Switch/Switch.h
- Committer:
- yokotaharuki
- Date:
- 2020-01-29
- Revision:
- 9:10276c46b467
- Parent:
- 1:e73cf2469f83
File content as of revision 9:10276c46b467:
#ifndef SWITCH_H_
#define SWITCH_H_
#include "mbed.h"
extern DigitalIn limitSw[];
namespace SWITCH
{
#define LIMITSW0_PIN A7
#define LIMITSW1_PIN A6
#define LIMITSW2_PIN A5
#define LIMITSW3_PIN A4
#define MOUNTING_LIMITSW_NUM 4
class Switch
{
public:
static void Initialize(void);
static bool checkPushed(int mySwitch);
};
}
#endif