-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMeOrion.h
86 lines (81 loc) · 2.76 KB
/
MeOrion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/**
* \par Copyright (C), 2012-2016, MakeBlock
* \brief Driver for MeOrion board.
* @file MeOrion.h
* @author MakeBlock
* @version V1.0.3
* @date 2016/09/20
* @brief Driver for MeOrion board.
*
* \par Copyright
* This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license \n
* conditions. The main licensing options available are GPL V2 or Commercial: \n
*
* \par Open Source Licensing GPL V2
* This is the appropriate option if you want to share the source code of your \n
* application with everyone you distribute it to, and you also want to give them \n
* the right to share who uses it. If you wish to use this software under Open \n
* Source Licensing, you must contribute all your source code to the open source \n
* community in accordance with the GPL Version 2 when your application is \n
* distributed. See http://www.gnu.org/copyleft/gpl.html
*
* \par Description
* This file is the driver for MeOrion hoard by MakeBlock.
*
* \par History:
* <pre>
* `<Author>` `<Time>` `<Version>` `<Descr>`
* Mark Yan 2015/09/01 1.0.0 Rebuild the old lib.
* Rafael Lee 2015/09/02 1.0.1 Added some comments and macros.
* Scott wang 2016/09/18 1.0.2 Add the PORT[15].
* Scott 2016/09/20 1.0.3 Add the PORT[16].
* </pre>
*/
#ifndef MeOrion_H
#define MeOrion_H
#include <Arduino.h>
#include "MeConfig.h"
// Supported Modules drive needs to be added here
#include "Me7SegmentDisplay.h"
#include "MeUltrasonicSensor.h"
#include "MeDCMotor.h"
#include "MeRGBLed.h"
#include "Me4Button.h"
#include "MePotentiometer.h"
#include "MeJoystick.h"
#include "MePIRMotionSensor.h"
#include "MeShutter.h"
#include "MeLineFollower.h"
#include "MeSoundSensor.h"
#include "MeLimitSwitch.h"
#include "MeLightSensor.h"
#include "MeSerial.h"
#include "MeBluetooth.h"
#include "MeWifi.h"
#include "MeTemperature.h"
#include "MeGyro.h"
#include "MeInfraredReceiver.h"
#include "MeCompass.h"
#include "MeUSBHost.h"
#include "MeTouchSensor.h"
#include "MeStepper.h"
#include "MeEncoderMotor.h"
#include "MeEncoderNew.h"
#include "MeBuzzer.h"
#include "MeLEDMatrix.h"
#include "MeHumitureSensor.h"
#include "MeFlameSensor.h"
#include "MeGasSensor.h"
#include "MeColorSensor.h"
/********************* Orion Board GPIO Map *********************************/
// struct defined in MePort.h
MePort_Sig mePort[17] =
{
{ NC, NC }, { 11, 10 }, { 3, 9 }, { 12, 13 }, { 8, 2 },
{ NC, NC }, { A2, A3 }, { A6, A1 }, { A7, A0 }, { 6, 7 },
{ 5, 4 }, { NC, NC }, { NC, NC }, { NC, NC }, { NC, NC },
{ NC, NC },{ NC, NC },
};
#define buzzerOn() pinMode(SCL,OUTPUT),digitalWrite(SCL, HIGH)
#define buzzerOff() pinMode(SCL,OUTPUT),digitalWrite(SCL, LOW)
#endif // MeOrion_H