EV3RT C++ API Reference  Version 1.0
An RTOS-based development platform for LEGO Mindstorms EV3.
Port.h
[詳解]
1 //
2 // Port.h
3 //
4 // Copyright (c) 2015-2016 Embedded Technology Software Design Robot Contest
5 //
6 
7 #ifndef EV3CPPAPI_PORT_H_
8 #define EV3CPPAPI_PORT_H_
9 
18 enum ePortS
19 {
20  PORT_1 = 0,
24 };
25 
29 enum ePortM
30 {
31  PORT_A = 0,
35 };
36 
40 enum ePower
41 {
42  POWER_OFF = 0,
45 };
46 
48 #define NUM_PORT_S (4) // number of sensor ports
49 
51 #define NUM_PORT_M (4) // number of motor ports
52 
53 #endif // ! EV3CPPAPI_PORT_H_
Definition: Port.h:20
ePortM
Definition: Port.h:29
Definition: Port.h:32
Definition: Port.h:43
ePortS
Definition: Port.h:18
Definition: Port.h:22
Definition: Port.h:33
Definition: Port.h:23
ePower
Definition: Port.h:40
Definition: Port.h:44
Definition: Port.h:34
Definition: Port.h:42
Definition: Port.h:21
Definition: Port.h:31