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

Driver for MegaPi 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 "MeColorSensor.h"
Include dependency graph for MeMegaPi.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
 

Variables

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

Detailed Description

Driver for MegaPi board.

Copyright (C), 2012-2016, MakeBlock
Author
MakeBlock
Version
V1.0.5
Date
2016/09/23

Driver for MegaPi 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 MegaPi board by MakeBlock.
History:
`<Author>`         `<Time>`        `<Version>`        `<Descr>`
Mark Yan         2016/02/20     1.0.0            Build the New.
Mark Yan         2016/03/10     1.0.1            Port mapping changes.
Scott wang       2016/09/18     1.0.2            Add the PORT[15].
Scott            2016/09/20     1.0.3            Add the PORT[16].
Scott            2016/09/23     1.0.4            Add the MePS2.h .
Zzipeng          2017/02/20     1.0.5            put the array megaPi_slots[4] to MegaPi.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, A1, 5, A4, A5},
{ NC, NC, NC, NC, NC},
}

◆ megapi_dc_Port

megapi_dc_type megapi_dc_Port[14]
Initial value:
=
{
{NC,NC,NC}, {33,32,11}, {40,41, 7}, {47,48, 6}, {A3,A2, 4},
{NC,NC,NC}, {NC,NC,NC}, {NC,NC,NC}, {NC,NC,NC}, {35,34,12},
{36,37, 8}, {42,43, 9}, {A5,A4, 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},
{A5, A4, A3, A2, A1, 2, 5, 4},
}

◆ mePort

MePort_Sig mePort[17]
Initial value:
=
{
{ NC, NC }, { NC, NC }, { NC, NC }, { NC, NC }, { NC, NC },
{ 16, 17 }, { A8, A9 }, { A10, A11 }, { A13, A12 }, { NC, NC },
{ NC, NC }, { NC, NC }, { NC, NC }, { NC, NC }, { NC, NC },
{ NC, NC },{ NC, NC },
}