36 lines
721 B
C++
36 lines
721 B
C++
/**
|
|
* \par Copyright (C), 2012-2016, MakeBlock
|
|
* @file MeSerialTest.ino
|
|
* @author MakeBlock
|
|
* @version V1.0.0
|
|
* @date 2015/09/09
|
|
* @brief Description: this file is sample code for hardware/software Serial.
|
|
*
|
|
* Function List:
|
|
* 1. void MeSerial::begin(long baudrate)
|
|
* 2. void MeSerial::printf(char *fmt,...)
|
|
*
|
|
* \par History:
|
|
* <pre>
|
|
* <Author> <Time> <Version> <Descr>
|
|
* Mark Yan 2015/09/09 1.0.0 rebuild the old lib
|
|
* </pre>
|
|
*/
|
|
#include "MeOrion.h"
|
|
#include <SoftwareSerial.h>
|
|
|
|
MeSerial mySerial(PORT_8);
|
|
|
|
void setup()
|
|
{
|
|
mySerial.begin(9600);
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
mySerial.println("just for test");
|
|
mySerial.printf("%d,0x%x \r\n",123,0x123);
|
|
delay(100);
|
|
}
|
|
|