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

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.

主站蜘蛛池模板: 嘉鱼县| 彰武县| 勐海县| 墨竹工卡县| 务川| 眉山市| 灵寿县| 新郑市| 昆明市| 灵丘县| 阳西县| 恭城| 杨浦区| 南通市| 商河县| 玉林市| 京山县| 双桥区| 龙里县| 沙洋县| 东台市| 浑源县| 康乐县| 内丘县| 藁城市| 扶绥县| 万源市| 高州市| 麻城市| 顺义区| 邵阳市| 尚义县| 丁青县| 陆河县| 徐水县| 呈贡县| 霍山县| 麟游县| 江陵县| 麻阳| 浦城县|