对不起,此内容只适用于日本語和English。
描述 读取 86Duino CPU 的温度。在 86Duino Coding 102 版本以后才可以使用这个函式。 语法 cpuTemperature(mode) cpuTemperature() 参数 mode: DEGREE_C,或 DEGREE_F 代表读取的温度单位为摄氏 (°C) 或华氏 (°F)。预设是以摄氏为单位。 回传 CPU 温度值 (double) 范例 语法参考主页面 本页由热血青年 LBU 译自英文版。 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 […]
86Duino IDE 从 Coding 102 开始加入此函式库,FreeIMU1 函式库提供 Fabio Varesanos FreeIMU 函式库的 API,这些 API 可以用来读取在 86Duino One 上的六轴惯性感测器。(注意:此函式库在 86Duino Zero、86Duino EduCake 和 86Duino PLC 上没有作用。) FreeIMU1 可参照网路上 FreeIMU 函式库的各种教学来学习。使用者可简单呼叫 getRawValues() 来取得原始的感测器数据;呼叫 getValues() 取得校正过的感测器数据;呼叫 getQ()、getEuler()、或 getYawPitchRoll() 来取得经过演算法估算过的惯性姿态。下面对 FreeIMU1 各函式进行简要说明。 函式 - FreeIMU1 - init() - zeroGyro() - getValues() - getRawValues() - getQ() - getEuler() - getEulerRad() - […]
对不起,此内容只适用于日本語和English。
86Duino IDE 从 Coding 102 开始加入此函式库,此函式库实做 Arduino Dues Audio 函式库的 API,可以存取 86Duino One、EduCake 和 PLC 的 HD Audio 介面。 函式 - begin() - prepare() - write() Hack Audio 函式库使用 WSS 函式库实做,WSS 函式库是用 DJGPP 开发的 DOS audio 函式库。如果需要 WSS 函式库资讯以及相关应用,可以在 DJGPP 的新闻群组(comp.os.msdos.djgpp)上找到相关的文章。 函式库参考主页面 The text of the 86Duino reference is a modification of the Arduino reference, […]
86Duino 计划的缘起 其实一开始我们是从没想过要做 86Duino 这类 Arduino 相容板的。虽然早在数年前设计 RoBoard 的时候,我们就已经开始关注像 Basic Stamp 和 Arduino 这类价格亲民且容易上手的电子学习平台,但是说实在话,在当时大多数电子产业的工程师,总是把这类平台视为小孩子的玩具而不看在眼里,也因此,每当内部开会时有人提出相关的构想,总是否决意见多于赞成意见。 后来,随着 Maker 运动兴起,Arduino 从众多电子学习平台中脱颖而出,成为主流,各种媒体报导引起了我们想进一步瞭解的兴趣。特别地,86Duino 的计划发起人在网上搜寻资料时,看到了 OpenLab.Taipei 翻译的 Arduino 记录片:Arduino The Documentary,这部影片改变了他的成见,重新从人的角度,而不是技术高低的角度,去认识 Arduino 这类电子开发板的价值。 记录片里,Arduino 创始人之一的 David Cuartielles 讲了一句:“至少能有一台 Arduino 电脑…. 这有何不可?”埋下了 86Duino 的种子。虽然肯定和 David Cuartielles 心里想的不一样,不过当时听到这一句话,我们心里是这样想的:“是啊,把电脑变成 Arduino,这有何不可?”于是一个把电脑变成更亲切、更易上手的开源电子学习平台的计划在心里逐渐成形,几位工程师在学生时代做过的开源梦,就这样又被燃起了。另一方面,这部记录片也影响了我们大主管对 Arduino 的看法,曾经当过老师的他,看完影片后激起了长久以来的教育梦,除了大力支持 86Duino 计划,甚至亲自下海设计了 86Duino EduCake 的原型。有人做开源梦,有人做教育梦,86Duino 成了 DMP 研发部门内非常受重视的一个专案。 86Duino 开发环境的命名 我们认为教育不应是知识的灌输,而该是问题解决能力的成长,所以 86Duino […]
描述 指定一个函式在接收到主端给从端的请求时被呼叫。 参数 handler:函式的名称,这个函式应该要没有回传值以及没有参数,例如:void myHandler() 回传 无回传值 See also - Wire.onReceive() 函式库参考主页面 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.
描述 指定一个函式在从端接收到主端传送的资料时被呼叫。 参数 handler:函式的名称,这个函式应该要没有回传值以及一个型态为 int 的参数,例如:void myHandler(int numBytes),这个 numBytes 的参数代表主端传送过来的资料量大小 回传 无回传值 See also - Wire.onRequest() 函式库参考主页面 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.
描述 读取藉由 I2C 介面传送过来的资料。如果是主端应该在呼叫 requestFrom() 后才呼叫 read()。 read() 是从 Stream 继承而来。 语法 Wire.read() 参数 无参数 回传 byte:从伺服器传送来的资料,如果没有资料可以读取,会回传 -1 范例 函式库参考主页面 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.
描述 回传藉由 I2C 传送过来的资料量,这些资料可以使用 read() 读取。如果是主端应该在呼叫 requestFrom() 后才呼叫 available(),如果是从端应该在使用 onReceive() 注册的函式裡呼叫。 available() 是从 Stream 继承而来。 参数 无参数 回传 int:目前可以读取的资料量,以位元组为单位 See also - Wire.read() - Stream.available() 函式库参考主页面 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 […]