Hello,
I think I messed up gravely...
I'm programming using Arduino IDE onto two Canbed RP2040's (which uses the Raspberry Pi 2040). Documentation can be found here: CANBED RP2040 - Longan Docs
I was attempting to make the two devices communicate over I2C. After uploading the following sketch to Device A,
#include <Wire.h>
#define Rp2040_I2C_ADDRESS 0x55
#define Rp2040_I2C_SDA 6
#define Rp2040_I2C_SCL 7
void setup() {
// put your setup code here, to run once:
Wire.setSDA(Rp2040_I2C_SDA);
Wire.setSCL(Rp2040_I2C_SCL);
Wire.begin(Rp2040_I2C_ADDRESS); // joins i2c bus at address 0x55
Wire.onRequest(eventReq);
}
void eventReq()
{
Wire.write("Hello "); // 6 char -> 6 bytes (any data over 6 bytes disregarded by master)
}
void loop() {
// put your main code here, to run repeatedly:
delay(200);
}
Device A no longer shows up on the Com Port. Everytime I disconnect/reconnect the device, I get a Window error that the last "USB Device Malfunctioned...". Device B's COM Port shows up perfectly fine. I've tried swapping the USB Cable, USB Port, restarting my PC and no dice.
Please help if possible