diff --git a/content/hardware/03.nano/boards/nano-every/tutorials/i2c/content.md b/content/hardware/03.nano/boards/nano-every/tutorials/i2c/content.md index 659ac44256..7129ad7823 100644 --- a/content/hardware/03.nano/boards/nano-every/tutorials/i2c/content.md +++ b/content/hardware/03.nano/boards/nano-every/tutorials/i2c/content.md @@ -91,6 +91,7 @@ Let's start by adding the `Wire.h` library by adding the `#include ` sta void setup() { Wire.begin(8); // join i2c bus with address #8 Wire.onReceive(receiveEvent); // function that executes whenever data is received from writer + pinMode(LED_BUILTIN,OUTPUT); // sets onBoard LED as output } ``` @@ -186,6 +187,7 @@ If you choose to skip the code building section, the complete code for both the void setup() { Wire.begin(8); // join i2c bus with address #8 Wire.onReceive(receiveEvent); // function that executes whenever data is received from writer + pinMode(LED_BUILTIN,OUTPUT); // sets onBoard LED as output } void loop() {