Adding #include <Wire.h> to the Wire library examples.

This commit is contained in:
David A. Mellis 2006-12-02 20:45:04 +00:00
parent 65aa69e2e1
commit 69949c2041
6 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,8 @@
// Created 29 April 2006 // Created 29 April 2006
#include <Wire.h>
void setup() void setup()
{ {
Wire.begin(); // join i2c bus (address optional for master) Wire.begin(); // join i2c bus (address optional for master)

View File

@ -7,6 +7,8 @@
// Created 31 March 2006 // Created 31 March 2006
#include <Wire.h>
void setup() void setup()
{ {
Wire.begin(); // join i2c bus (address optional for master) Wire.begin(); // join i2c bus (address optional for master)

View File

@ -7,6 +7,8 @@
// Created 29 March 2006 // Created 29 March 2006
#include <Wire.h>
void setup() void setup()
{ {
Wire.begin(); // join i2c bus (address optional for master) Wire.begin(); // join i2c bus (address optional for master)

View File

@ -7,6 +7,8 @@
// Created 29 March 2006 // Created 29 March 2006
#include <Wire.h>
void setup() void setup()
{ {
Wire.begin(); // join i2c bus (address optional for master) Wire.begin(); // join i2c bus (address optional for master)

View File

@ -7,6 +7,8 @@
// Created 29 March 2006 // Created 29 March 2006
#include <Wire.h>
void setup() void setup()
{ {
Wire.begin(4); // join i2c bus with address #4 Wire.begin(4); // join i2c bus with address #4

View File

@ -7,6 +7,8 @@
// Created 29 March 2006 // Created 29 March 2006
#include <Wire.h>
void setup() void setup()
{ {
Wire.begin(2); // join i2c bus with address #2 Wire.begin(2); // join i2c bus with address #2