|
|
|
|
@ -45,9 +45,6 @@
|
|
|
|
|
#include <Adafruit_SSD1306.h>
|
|
|
|
|
#include <NintendoExtensionCtrl.h> // https://github.com/dmadison/NintendoExtensionCtrl
|
|
|
|
|
|
|
|
|
|
// SDA SCL
|
|
|
|
|
TwoWire Wire3(PC_9, PA_8);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// #include <SoftwareSerial.h>
|
|
|
|
|
// SoftwareSerial HoverSerial(2,3); // RX, TX
|
|
|
|
|
@ -92,7 +89,7 @@ int motor_test_direction = 1;
|
|
|
|
|
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
|
|
|
|
|
|
|
|
|
|
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
|
|
|
|
|
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire3);
|
|
|
|
|
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire);
|
|
|
|
|
// Connect to a Nunchuk
|
|
|
|
|
Nunchuk nchuk;
|
|
|
|
|
HardwareSerial Serial1(PA_10, PA_9);
|
|
|
|
|
|