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

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.

主站蜘蛛池模板: 灵川县| 三原县| 广平县| 微山县| 宜良县| 湘乡市| 渝北区| 北碚区| 安福县| 三门县| 磴口县| 沁源县| 山阳县| 安阳市| 沿河| 都江堰市| 晋江市| 永靖县| 苍南县| 五华县| 宁化县| 天长市| 鄂州市| 油尖旺区| 慈溪市| 禹州市| 栖霞市| 十堰市| 改则县| 视频| 咸丰县| 巫山县| 垫江县| 金堂县| 台前县| 邻水| 平凉市| 赞皇县| 朝阳市| 富阳市| 年辖:市辖区|