From 1203fadfdcb8d8a4ed2cce3b7ac09c83eff4d46d Mon Sep 17 00:00:00 2001 From: JbLb Date: Sat, 8 Feb 2020 15:00:35 +0100 Subject: [PATCH] ajust pin name for wire2 --- hoverserial.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hoverserial.ino b/hoverserial.ino index 56febc4..5699c54 100644 --- a/hoverserial.ino +++ b/hoverserial.ino @@ -20,8 +20,8 @@ Adafruit_NeoPixel strip(32, PIN, NEO_GRB + NEO_KHZ800); #include // https://github.com/dmadison/NintendoExtensionCtrl #include -// second I2C on PB_11 (SDA) PB_10 (SCL) -TwoWire Wire2(PB_11, PB_10); +// second I2C on PB11 (SDA) PB10 (SCL) +TwoWire Wire2(PB11, PB10); // Connect to a Nunchuk Nunchuk nchuk(Wire2); @@ -77,8 +77,8 @@ void setup() { Wire.setSCL(PB_8); Wire.setSDA(PB_9); - Wire2.setSCL(PB_10); - Wire2.setSDA(PB_11); + // Wire2.setSCL(PB_10); + // Wire2.setSDA(PB_11); nchuk.begin();