|
|
|
|
@ -20,8 +20,8 @@ Adafruit_NeoPixel strip(32, PIN, NEO_GRB + NEO_KHZ800);
|
|
|
|
|
#include <NintendoExtensionCtrl.h> // https://github.com/dmadison/NintendoExtensionCtrl
|
|
|
|
|
|
|
|
|
|
#include <Wire.h>
|
|
|
|
|
// 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();
|
|
|
|
|
|
|
|
|
|
|