代码拉取完成,页面将自动刷新
/**************************************************************************/
/*!
@file read_serial.h
@author lisper (lisper.li@dfrobot.com)
@license LGPLv3 (see license.txt)
provide some useful function make it easy to read many data from serial
Copyright (C) DFRobot - www.dfrobot.com
*/
/**************************************************************************/
#include <Arduino.h>
//call like : read_serial_with_timeout (Serial1, buffer, 12, 5)
uint8_t serialRead (HardwareSerial the_serial,
uint8_t *buf, uint8_t leng, uint8_t timeout);
uint8_t serialReads (HardwareSerial the_serial,
uint8_t *buf, uint8_t leng, uint8_t timeout);
#if defined(__AVR_ATmega32U4__)
//call like : read_serial_with_timeout (Serial, buffer, 12, 5)
uint8_t serialRead (Serial_ the_serial,
uint8_t *buf, uint8_t leng, uint8_t timeout);
uint8_t serialReads (Serial_ the_serial,
uint8_t *buf, uint8_t leng, uint8_t timeout);
#endif
#if defined(__AVR_ATmega32U4__)
uint8_t serial1Read (uint8_t *buf, uint8_t leng);
//send data to serial1
void serial1Write (uint8_t *buf, uint8_t leng);
#endif
#if defined(__AVR_ATmega2560__)
//send data to serial2
void serial2Write (uint8_t *theBuf, uint8_t leng);
#endif
//print data to PC in hex for test
void printHex (uint8_t *thebuf, uint8_t leng);
//
void pauseSerial (uint16_t delayTime);
//
void pauseSerial ();
#if defined(__AVR_ATmega32U4__)
void pauseSerial (Serial_ the_serial, uint16_t delayTime);
#endif
void pauseSerial (HardwareSerial the_serial, uint16_t delayTime);
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。