MakeBlock Drive Updated Updated library for MakeBlock Ranger

Loading...
Searching...
No Matches
MePS2.cpp File Reference

Driver for MePS2 device. More...

`#include "MePS2.h"`
`#include "MeSerial.h"`
Include dependency graph for MePS2.cpp:

## Detailed Description

Driver for MePS2 device.

Author
  MakeBlock

Version
  V1.0.4

Date
  2016/10/08

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 PS2 handle device, The MePS2 inherited the MeSerial class from SoftwareSerial.

Method List:
  1. uint8_t MePS2::readBuffer(int16_t index);
  2. void MePS2::writeBuffer(int16_t index,uint8_t c);
  3. void MePS2::readSerial(void);
  4. boolean MePS2::readjoystick(void);
  5. int16_t MePS2::MeAnalog(uint8_t button);
  6. boolean MePS2::ButtonPressed(uint8_t button);
  7. void MePS2::loop(void);

History:

      `<Author>`         `<Time>`        `<Version>`        `<Descr>`
       Scott wang      2016/09/18         1.0.0            Build the new lib.
       Scott           2016/09/20         1.0.1            Correct the receive error.
       Scott           2016/09/22         1.0.2            Correct the connect error.
       Scott           2016/09/23         1.0.3            Add BUTTON_L and BUTTON_R.
       Mark Yan        2016/10/08         1.0.4            Modify data format.