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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
13.58.82.79