I am trying to get the Arduino Giga r1 Wifi to work with my new Arduino Sensor Kit however I keep getting this error:
WARNING: library Arduino_Sensorkit claims to run on avr architecture(s) and may be incompatible with your current board which runs on mbed_giga architecture(s).
C:\Users\huber\OneDrive\Documents\Arduino\libraries\Arduino_Sensorkit\src\Arduino_SensorKit.cpp:4:52: error: 'SCL' was not declared in this scope
U8X8_SSD1306_128X64_NONAME_SW_I2C Oled(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);
^~~
C:\Users\huber\OneDrive\Documents\Arduino\libraries\Arduino_Sensorkit\src\Arduino_SensorKit.cpp:4:52: note: suggested alternative: 'SCK'
U8X8_SSD1306_128X64_NONAME_SW_I2C Oled(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);
^~~
SCK
C:\Users\huber\OneDrive\Documents\Arduino\libraries\Arduino_Sensorkit\src\Arduino_SensorKit.cpp:4:68: error: 'SDA' was not declared in this scope
U8X8_SSD1306_128X64_NONAME_SW_I2C Oled(/* clock=*/ SCL, /* data=*/ SDA, /* reset=*/ U8X8_PIN_NONE);
^~~
exit status 1
Compilation error: exit status 1
This is my code (It's the first example from the website https://sensorkit.arduino.cc/:
#include "Arduino_SensorKit.h"
int button = 4;
int LED = 6;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
while (!Serial);
pinMode(button , INPUT);
pinMode(LED, OUTPUT);
digitalWrite(LED, LOW);
}
void loop() {
// put your main code here, to run repeatedly:
if (digitalRead(button)) {
digitalWrite(LED, HIGH);
} else {
digitalWrite(LED, LOW);
}
}
> Blockquote
Am I wasting my time trying to figure this out, or can it be done?