Driver for Me Smart Servo device.
More...
#include "MeSmartServo.h"
#include "MeSerial.h"
#include <avr/wdt.h>
Driver for Me Smart Servo device.
- Author
- MakeBlock
- Version
- V1.0.0
- Date
- 2016/08/23
- 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 Smart Servo device, The Smart Servo inherited the MeSerial class from SoftwareSerial.
- Method List:
- uint8_t MeSmartServo::readByte(uint8_t *argv,int16_t idx);
- short MeSmartServo::readShort(uint8_t *argv,int16_t idx,boolean ignore_high);
- float MeSmartServo::readFloat(uint8_t *argv,int16_t idx);
- long MeSmartServo::readLong(uint8_t *argv,int idx);
- uint8_t MeSmartServo::sendByte(uint8_t val);
- uint8_t MeSmartServo::sendShort(int16_t val,boolean ignore_high);
- uint8_t MeSmartServo::sendFloat(float val);
- uint8_t MeSmartServo::sendLong(long val);
- boolean MeSmartServo::assignDevIdRequest(void);
- boolean MeSmartServo::moveTo(uint8_t dev_id,long angle_value,float speed,smartServoCb callback);
- boolean MeSmartServo::move(uint8_t dev_id,long angle_value,float speed,smartServoCb callback);
- boolean MeSmartServo::setZero(uint8_t dev_id);
- boolean MeSmartServo::setBreak(uint8_t dev_id, uint8_t breakStatus);
- boolean MeSmartServo::setRGBLed(uint8_t dev_id, uint8_t r_value, uint8_t g_value, uint8_t b_value);
- boolean MeSmartServo::handSharke(uint8_t dev_id);
- boolean MeSmartServo::setPwmMove(uint8_t dev_id, int16_t pwm_value);
- boolean MeSmartServo::setInitAngle(uint8_t dev_id,uint8_t mode,int16_t speed);
- long MeSmartServo::getAngleRequest(uint8_t devId);
- float MeSmartServo::getSpeedRequest(uint8_t devId);
- float MeSmartServo::getVoltageRequest(uint8_t devId);
- float MeSmartServo::getTempRequest(uint8_t devId);
- float MeSmartServo::getCurrentRequest(uint8_t devId);
- void MeSmartServo::assignDevIdResponse(void *arg);
- void MeSmartServo::processSysexMessage(void);
- void MeSmartServo::smartServoEventHandle(void);
- void MeSmartServo::errorCodeCheckResponse(void *arg);
- void MeSmartServo::smartServoCmdResponse(void *arg);
- History:
`<Author>` `<Time>` `<Version>` `<Descr>`
Mark Yan 2016/08/23 1.0.0 Build the new.