MakeBlock Drive Updated
Updated library for MakeBlock Ranger
Loading...
Searching...
No Matches
MeMegaPiPro.h File Reference

Driver for MegaPiPro board. More...

#include <Arduino.h>
#include "MeConfig.h"
#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 "MeStepperOnBoard.h"
#include "MeEncoderMotor.h"
#include "MeEncoderNew.h"
#include "MeBuzzer.h"
#include "MeLEDMatrix.h"
#include "MeHumitureSensor.h"
#include "MeFlameSensor.h"
#include "MeGasSensor.h"
#include "MeEncoderOnBoard.h"
#include "MeMegaPiDCMotor.h"
#include "MePressureSensor.h"
#include "MePS2.h"
#include "MeSmartServo.h"
#include "MeMegaPiProESCMotor.h"
#include "MeColorSensor.h"
Include dependency graph for MeMegaPiPro.h:

Go to the source code of this file.

Macros

#define PORT1A   PORT_1
 
#define PORT1B   PORT_9
 
#define PORT2A   PORT_2
 
#define PORT2B   PORT_10
 
#define PORT3A   PORT_3
 
#define PORT3B   PORT_11
 
#define PORT4A   PORT_4
 
#define PORT4B   PORT_12
 
#define M9   (0X01)
 
#define M10   (0X02)
 
#define M11   (0X03)
 
#define M12   (0X04)
 

Variables

MePort_Sig mePort [17]
 
megapi_dc_type megapi_dc_Port [14]
 
Encoder_port_type encoder_Port [6]
 
megaPi_slot_type megaPi_slots [4]
 
megapipro_esc_type megapi_esc_Port [5]
 

Detailed Description

Driver for MegaPiPro board.

Copyright (C), 2012-2017, MakeBlock
Author
MakeBlock
Version
V1.0.3
Date
2017/05/22

Driver for MegaPiPro board.

Copyright
This software is Copyright (C), 2012-2016, MakeBlock. Use is subject to license
conditions. The main licensing options available are GPL V2 or Commercial:
Open Source Licensing GPL V2
This is the appropriate option if you want to share the source code of your
application with everyone you distribute it to, and you also want to give them
the right to share who uses it. If you wish to use this software under Open
Source Licensing, you must contribute all your source code to the open source
community in accordance with the GPL Version 2 when your application is
distributed. See http://www.gnu.org/copyleft/gpl.html
Description
This file is the driver for MegaPiPro board by MakeBlock.
History:
`<Author>`         `<Time>`        `<Version>`        `<Descr>`
Zzipeng          2017/02/27          1.0.0            build the new
Zzipeng          2017/03/14          1.0.1            add MeSmartServo.h.
Zzipeng          2017/02/20          1.0.2            put the array megaPi_slots[4] to MegaPipro.h
Zzipeng          2017/05/20          1.0.3            add MeMegaPiProESCMotor.h
Zzipeng          2017/05/22          1.0.4            add MeColorSensor.h

Variable Documentation

◆ encoder_Port

Encoder_port_type encoder_Port[6]
Initial value:
=
{
{ NC, NC, NC, NC, NC},
{ 18, 31, 12, 34, 35},
{ 19, 38, 8, 37, 36},
{ 3, 49, 9, 43, 42},
{ 2, 26, 5, 29, 39},
{ NC, NC, NC, NC, NC},
}

◆ megapi_dc_Port

megapi_dc_type megapi_dc_Port[14]
Initial value:
=
{
{ NC, NC }, {33,32,11}, {40,41, 7}, {47,48, 6}, {28,27, 4},
{ NC, NC }, { NC, NC }, { NC, NC }, { NC, NC }, {35,34,12},
{36,37, 8}, {42,43, 9}, {39,29, 5},
}

◆ megapi_esc_Port

megapipro_esc_type megapi_esc_Port[5]
Initial value:
=
{
{ NC}, {12}, {8}, {9}, {5},
}

◆ megaPi_slots

megaPi_slot_type megaPi_slots[4]
Initial value:
=
{
{35, 34, 33, 32, 31, 18, 12, 11},
{36, 37, 40, 41, 38, 19, 8, 7},
{42, 43, 47, 48, 49, 3, 9, 6},
{39, 29, 28, 27, 26, 2, 5, 4}
}

◆ mePort

MePort_Sig mePort[17]
Initial value:
=
{
{ NC, NC },{ 46, 23 }, { 45, 22 }, { 44, 25 }, { 10, 24 },
{ 16, 17 },{ A9, A4 }, { A10, A11}, { A15, A14}, { A13, A12 },
{ A7, A8 },{ A6, A5 }, { A1, A2 }, { NC, NC }, { NC, NC },
{ NC, NC }, { NC, NC },
}