From b5a130afb51c971fd7ceca8834b6055f1eada253 Mon Sep 17 00:00:00 2001 From: Federico Fissore Date: Mon, 6 Jul 2015 15:18:33 +0200 Subject: Examples: mass code format. See example_formatter.conf --- libraries/Wire/examples/slave_sender/slave_sender.ino | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'libraries/Wire/examples/slave_sender/slave_sender.ino') diff --git a/libraries/Wire/examples/slave_sender/slave_sender.ino b/libraries/Wire/examples/slave_sender/slave_sender.ino index 26b9e52..d2e72bb 100644 --- a/libraries/Wire/examples/slave_sender/slave_sender.ino +++ b/libraries/Wire/examples/slave_sender/slave_sender.ino @@ -12,21 +12,18 @@ #include -void setup() -{ +void setup() { Wire.begin(8); // join i2c bus with address #8 Wire.onRequest(requestEvent); // register event } -void loop() -{ +void loop() { delay(100); } // function that executes whenever data is requested by master // this function is registered as an event, see setup() -void requestEvent() -{ +void requestEvent() { Wire.write("hello "); // respond with message of 6 bytes // as expected by master } -- cgit v1.2.3-18-g5258