Makeblock-library-for-Arduino  V3.2.4
It's a library for arduino application developers
Classes | Macros
MeLineFollower.h File Reference

Header for for MeLineFollower.cpp module. More...

#include <stdint.h>
#include <stdbool.h>
#include <Arduino.h>
#include "MeConfig.h"
#include "MePort.h"

Go to the source code of this file.

Classes

class  MeLineFollower
 Driver for Me line follwer device. More...
 

Macros

#define S1_IN_S2_IN   (0x00)
 
#define S1_IN_S2_OUT   (0x01)
 
#define S1_OUT_S2_IN   (0x02)
 
#define S1_OUT_S2_OUT   (0x03)
 

Detailed Description

Header for for MeLineFollower.cpp module.

Author
MakeBlock
Version
V1.0.0
Date
2015/09/07
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 a drive for Me line follwer device, It supports line follwer device V2.2 provided by the MakeBlock. The line follwer used Infrared Tube to Use infrared receiver and transmitter to detect the black line.
Method List:
  1. void MeLineFollower::setpin(uint8_t Sensor1,uint8_t Sensor2)
  2. uint8_t MeLineFollower::readSensors(void)
  3. bool MeLineFollower::readSensor1(void)
  4. bool MeLineFollower::readSensor1(void)
History:
<Author>         <Time>        <Version>        <Descr>
Mark Yan         2015/09/07     1.0.0            Rebuild the old lib.

Macro Definition Documentation

#define S1_IN_S2_IN   (0x00)
#define S1_IN_S2_OUT   (0x01)
#define S1_OUT_S2_IN   (0x02)
#define S1_OUT_S2_OUT   (0x03)