官术网_书友最值得收藏!

Methods and libraries

In the demos you tested in the previous steps, you've tried only the digitalWrite and analogWrite methods. Besides those, there are also the analog methods. On the Arduino website, you can find a useful Arduino language reference explaining all the supported methods, constants, operators, and syntax. You can find the Arduino language reference at http://arduino.cc/en/Reference/HomePage.

The Galileo Arduino IDE already brings some libraries, and it is even possible to import the libraries developed by the Galileo community. Beware, not all the Arduino libraries currently work in Galileo. Many of them were developed strictly for the Arduino architecture, and they require to be ported.

Some of the many libraries that Intel have made available are:

  • Ethernet: This library allows you to connect to the Internet.
  • WiFi: This allows you to connect to the Internet using a wireless card. It brings sketches that help you to configure your Wi-Fi access.
  • Wire: This allows you to communicate with I2C devices.
  • SPI: This helps you to write to the SPI bus.
  • Servo: This helps you to control servos smoothly.
Note

To see all the available libraries, navigate to Sketch | Import Library... on the IDE top menu.

主站蜘蛛池模板: 临夏市| 长垣县| 凉城县| 会同县| 团风县| 中牟县| 凌海市| 金塔县| 横峰县| 汾阳市| 泸西县| 江源县| 镇康县| 余干县| 丘北县| 赤水市| 嘉兴市| 浑源县| 新兴县| 健康| 临泽县| 吉水县| 沙雅县| 象山县| 永泰县| 梁河县| 长子县| 汾西县| 辽阳市| 克山县| 金山区| 阳春市| 仲巴县| 精河县| 丰台区| 永康市| 平谷区| 岳池县| 普宁市| 靖西县| 湘西|