描述 透过软体序列介面传送资料,在资料传送完成后再传送一个换行字元(’\n’)。运作方式与 Serial.println() 相同。 参数 详情请看 Serial.println() 回传 byte:println() 会回传传送资料的位元组数量 范例 See also - SoftwareSerial() - begin() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public […]
描述 透过软体序列介面传送资料。运作方式与 Serial.print() 相同。 参数 详情请看 Serial.print() 回传 byte:print() 会回传传送资料的位元组数量 范例 See also - SoftwareSerial() - begin() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public […]
描述 回传软体序列介面接收到的资料。 请注意,同一时间只能有一个 SoftwareSerial 物件接收资料,监听指定 SoftwareSerial 物件请呼叫 listen()。 参数 无参数 回传 char:回传软体序列介面接收到的资料中最先收到的字元,如果没有资料可以读则回传 -1 范例 See also - SoftwareSerial() - begin() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released […]
描述 回传软体序列介面接收到的资料。不过与 read() 并不相同,在不呼叫 read() 前,每次呼叫 peek() 得到的字元都是相同的。 请注意,同一时间只能有一个 SoftwareSerial 物件接收资料,监听指定 SoftwareSerial 物件请呼叫 listen()。 参数 无参数 回传 char:回传软体序列介面接收到的资料中最先收到的字元,如果没有资料可以读则回传 -1 范例 See also - SoftwareSerial() - begin() - read() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 […]
描述 检查软体序列介面的缓冲区(buffer)是否溢位(overflow)。呼叫这个函式会清除溢位的旗标(flag),意指除非在呼叫后有新的资料到来,否则再呼叫这个函式会得到 false。 软体序列介面的缓冲区(buffer)的大小是 64 个位元组。 语法 mySerial.overflow() 参数 无参数 回传 boolean:如果缓冲区溢位则回传 true,反之回传 false 范例 See also - SoftwareSerial() - read() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are […]
描述 检查软体序列介面是否被监听中。 语法 mySerial.isListening() 参数 无参数 回传 boolean:如果该软体序列介面被监听中则回传 true,反之回传 false 范例 See also - SoftwareSerial() - read() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public […]
描述 设定软体序列介面的鲍率(baud rate)。支援的鲍率有:300、600、1200、2400、4800、9600、14400、19200。 参数 speed:鲍率,型态为 long 回传 无回传值 范例 See also - SoftwareSerial() - read() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
描述 取得软体序列介面目前可读资料的位元组数量。这些可读的资料储存在软体序列的缓冲区(buffer)。 语法 mySerial.available() 参数 无参数 回传 int:软体序列介面目前可读资料的位元组数量 范例 See also - SoftwareSerial() - read() - print() - println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.
描述 呼叫 SoftwareSerial(rxPin, txPin) 创建新的 SoftwareSerial 物件。 创建完 SoftwareSerial 物件之后还要呼叫 SoftwareSerial.begin() 启动序列介面的功能。 参数 rxPin:用来接收序列资料的脚位 txPin:用来传送序列资料的脚位 范例 See also - SoftwareSerial.begin() - SoftwareSerial.read() - SoftwareSerial.print() - SoftwareSerial.println() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference […]
描述 设定连线使用的频段。在这个网页裡有 GSM 频段的资讯,以下为典型的区域设定: -欧洲、非洲、中东:E-GSM(900)+DCS(1800) -美国、加拿大、南美洲:GSM(850)+PCS(1900) -墨西哥:PCS(1900) -巴西:GSM(850)+E-GSM(900)+DCS(1800)+PCS(1900) 语法 band.setBand(type) 参数 type:要使用的频段名称 -GSM_MODE_UNDEFINED -GSM_MODE_EGSM -GSM_MODE_DCS -GSM_MODE_PCS -GSM_MODE_EGSM_DCS -GSM_MODE_GSM850_PCS -GSM_MODE_GSM850_EGSM_DCS_PCS 回传 boolean:如果设定成功回传 true,反之回传 false See also - getBand() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the […]