ajust pin name for wire2

bluepill
JbLb 6 years ago
parent 744c7ca5b9
commit 1203fadfdc

@ -20,8 +20,8 @@ Adafruit_NeoPixel strip(32, PIN, NEO_GRB + NEO_KHZ800);
#include <NintendoExtensionCtrl.h> // https://github.com/dmadison/NintendoExtensionCtrl #include <NintendoExtensionCtrl.h> // https://github.com/dmadison/NintendoExtensionCtrl
#include <Wire.h> #include <Wire.h>
// second I2C on PB_11 (SDA) PB_10 (SCL) // second I2C on PB11 (SDA) PB10 (SCL)
TwoWire Wire2(PB_11, PB_10); TwoWire Wire2(PB11, PB10);
// Connect to a Nunchuk // Connect to a Nunchuk
Nunchuk nchuk(Wire2); Nunchuk nchuk(Wire2);
@ -77,8 +77,8 @@ void setup()
{ {
Wire.setSCL(PB_8); Wire.setSCL(PB_8);
Wire.setSDA(PB_9); Wire.setSDA(PB_9);
Wire2.setSCL(PB_10); // Wire2.setSCL(PB_10);
Wire2.setSDA(PB_11); // Wire2.setSDA(PB_11);
nchuk.begin(); nchuk.begin();

Loading…
Cancel
Save