1 Star 0 Fork 1

sam/libraries

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
StduinoSerial.h 2.06 KB
一键复制 编辑 原始数据 按行查看 历史
sam 提交于 2020-07-02 13:39 . 1.03
/***************************************************************
*Copyright(c) 2020思特诺(Stduino)All right reserved.
*
*This library is open source and free for individual users.
*
*For commercial use, please contact service001@stduino.com.
***************************************************************/
#ifndef StduinoSerial_h
#define StduinoSerial_h
#include "StduinoHardwareSerial.h"
#include "StduinoString.h"
class HardwareSerial
{
private:
uint8_t USARTX;
public:
HardwareSerial(uint8_t);
~HardwareSerial();
void begin(uint32_t);
void write(unsigned char);
void print(unsigned char,unsigned char=DEC);
void println(unsigned char,unsigned char=DEC);
void print(unsigned int,unsigned char=DEC);
void println(unsigned int,unsigned char=DEC);
void print(unsigned short int,unsigned char=DEC);
void println(unsigned short int,unsigned char=DEC);
void print(int,unsigned char=DEC);
void println(int,unsigned char=DEC);
void print(long,unsigned char=DEC);
void println(long,unsigned char=DEC);
void print(uint32_t,unsigned char=DEC);
void println(uint32_t,unsigned char=DEC);
void print(double,unsigned char=2);
void println(double,unsigned char=2);
void print(float,unsigned char=1);
void println(float,unsigned char=1);
void print(String);
void println(String);
void print(const char*);
void println(const char*);
void print(char data[]);
void println(char data[]);
void print(unsigned char data[]);
void println(unsigned char data[]);
void print(void);
void println(void);
char read(void);
uint8_t available(void);
int peek(void);
String peekString(void);
String readString(void);
};
extern HardwareSerial Serial;
extern HardwareSerial Serial1;
extern HardwareSerial Serial2;
#endif
/***************************************************************
*Copyright(c) 2020思特诺(Stduino)All right reserved.
*
*This library is open source and free for individual users.
*
*For commercial use, please contact service001@stduino.com.
***************************************************************/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/stduino/libraries.git
git@gitee.com:stduino/libraries.git
stduino
libraries
libraries
master

搜索帮助