描述 挂断连线中的通话或是来电。该函式回传的值在同步与非同步的情况下意义不同,底下会有详细的介绍。 语法 voice.hangCall() 参数 无参数 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示挂断通话成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示挂断通话成功,回传 0 表示挂断通话失败 范例 See also - GSMVoiceCall - getVoiceCallStatus() - ready() - voiceCall() - answerCall() - retrieveCallingNumber() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike […]
描述 取得来电号码。 语法 voice.retrieveCallingNumber(number, size) 参数 number:用来存放来电号码的字元阵列 size:字元阵列(number)的大小 回传 int:在非同步模式中回传 0 表示最后呼叫的指令仍然在执行中,回传 1 表示取得来电号码成功,而回传大于 1 的值代表有错误发生;在同步模式中回传 1 表示取得来电号码成功,回传 0 表示取得来电号码失败 范例 See also - GSMVoiceCall - getVoiceCallStatus() - ready() - voiceCall() - answerCall() - hangCall() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative […]
描述 中断与 GSM 网路的连线藉由关闭 Arduino GSM shield。 语法 gsm.shutdown() 参数 无参数 回传 boolean:函式执行成功时回传 1,正在执行回传 0 范例 See also - GSM constructor - begin() 函式库参考主页面 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 […]
描述 连接到 GSM 网路。 语法 gsm.begin() gsm.begin(pin) gsm.begin(pin, restart) gsm.begin(pin, restart, sync) 参数 pin:储存 PIN 码的字元阵列,预设为 0 restart :如果 restart 为 true 会重新启动 Arduino GSM shield,接着再初始化,反之则不会重新启动,直接初始化。restart 预设为 true,型态为 boolean sync:如果 sync 为 true 则为同步(synchronous)模式,反之为非同步(asynchronous)模式,sync 预设为 true,型态为 boolean 回传 char:如果是非同步状态回传 0;如果是同步状态,回传连线的状态:ERROR, IDLE, CONNECTING, GSM_READY, GPRS_READY, TRANSPARENT_CONNECTED 范例 See also - GSM constructor - shutdown() 函式库参考主页面 The […]
描述 GSM 类别是 GSM 函式库的基础,在使用任何 GSM 函式库的功能前,都要用 GSM 类别初始化 Arduino GSM shield。 语法 GSM GSMAccess GSM GSMAccess(debug) 参数 debug:debug 是 boolean 型态的参数,如果给予 true 将会把传送给 Arduino GSM shield 的 AT 指令输出至序列埠监控视窗,反之不会输出 AT 指令。如果没给参数,预设为 false。 范例 See also - begin() - shutdown() 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, and […]
GSM 函式库从 86Duino Coding 103 开始支援。 如何连接 86Duino 和 Arduino GSM shield 可以参考这篇教学。 86Duino 连接了 Arduino GSM shield 后,配合 GSM 函式库可以实现手机大部分的功能,像是播打/接听电话、收发简讯、连上 GPRS 网路。 Arduino GSM shield 上有一个数据机把从 86Duino 接收到的资料传送到 GSM 网路。Arduino GSM shield 的数据机上有串列埠(UART),要控制 Arduino GSM shield 时,必须传送 AT 指令到这个串列埠。GSM 函式库把 AT 指令包装成简单易懂的函式,像是播打电话如果用 AT 指令做,可能需要下好几个 AT 指令并且做额外的判断,使用 GSM 函式库只要用一个函式就可以打电话。 函式库结构 GSM 函式库有许多功能,这些功能可以区分为以下七大类别: GSM 类别完成初始化 Arduino […]
86Duino IDE 从 Coding 104 开始加入此函式库,用于操作 86Duino 提供的高速编码器输入介面功能。 86Duino 的编码器介面可切换成不同模式来与各种编码器连接,例如旋转编码器与光学尺。每组编码器介面有三根针脚,分别标为 A、B、Z,在不同模式下对应不同功能;不同 86Duino 板支援不同数量的编码器介面,例如在 86Duino Zero 上支援一组(轴),在 86Duino One 上则可支援四组(轴)。以下是 86Duino 编码器介面与脚位编号的对应表: 86Duino Boards ENC0 pins ENC1 pins ENC2 pins ENC3 pins Zero A: 42 B: 43 Z: 44 One A: 42 B: 43 Z: 44 A: 18 B: 19 Z: 20 A: 33 B: 34 […]
描述 设定 Slave Select(SS)pin 脚致能(低电位)或关闭(高电位)。这个函式从 86Duino Coding 103 开始支援。 语法 SPI.setSS(value) 参数 value:HIGH (pull high the SS pin) or LOW (pull low the SS pin). 回传 函式库参考主页面 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 […]
Windows 8 Windows 7 Windows XP
对不起,此内容只适用于日本語和English。