mirror of
https://github.com/arduino/Arduino.git
synced 2024-12-10 21:24:12 +01:00
Adding #include <Wire.h> to the Wire library examples.
This commit is contained in:
parent
65aa69e2e1
commit
69949c2041
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user