Articles Posted in the " " Category

  • #include

    #include

    #include 是当你想要在程式码内加入外部函式库时使用。它可以替你加入庞大的标准 C 函式库以及一些特别设计给 86Duino 使用的函式库。 DJGPP C 函式库参考连结。(DJGPP 是 86Duino 所使用的编译器) 注意 #include 与 #define 相同,最尾端无须加入分号。若是加入了也合乎语法,但可能造成未预期的错误。 范例 本范例引入了一个可读取 BIOS 内部计数器,此计数器数值由午夜 0 点以 18.2 赫兹的频率递增。 语法参考主页面 本页由热血青年 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 […]


  • analogReference(type)

    analogReference(type)

    描述 对 Arduino 来说这个函式是用来设定输入的参考电压,但在 86Duino 上不支援这个函式,呼叫此函式不会有任何作用 (这个函式因为 Arduino 的相容性而被保留下来) 参数 type: DEFAULT,INTERNAL,INTERNAL1V1,INTERNAL2V56,EXTERNAL。但是这些参数只作用在 Arduino 上,在 86Duino 上是没有用的。 回传 无回传值 See also - Description of the analog input pins - analogRead() 语法参考主页面 本页由热血青年 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 […]






  • % (modulo)

    % (modulo)

      % (modulo) Description Calculates the remainder when one integer is divided by another. It is useful for keeping a variable within a particular range (e.g. the size of an array). Syntax result = dividend % divisor Parameters dividend: the number to be divided divisor: the number to divide by Returns the remainder Examples x […]