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

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.

主站蜘蛛池模板: 平陆县| 西平县| 布尔津县| 刚察县| 宣城市| 泗洪县| 名山县| 海伦市| 遵义县| 中西区| 柯坪县| 怀安县| 平定县| 东辽县| 朔州市| 五原县| 怀来县| 青铜峡市| 宜兰市| 翁牛特旗| 怀化市| 比如县| 夏河县| 临洮县| 当雄县| 当雄县| 衡东县| 鸡东县| 山阴县| 上蔡县| 英超| 邵阳市| 和田县| 南召县| 永宁县| 康保县| 瑞金市| 巍山| 宝丰县| 鸡泽县| 安仁县|