From 07106fe9b11d09fcdd1525425634739a3e3c4375 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 9 Jun 2024 16:11:12 +0200 Subject: add some remnants of rp2040 debugging hell (see message) This commit has a few commented lines in CMakeLists.txt for compiling Arduino sketches for the RP2040 using . I used this to sanity check if the same use of the Wire library that I used for the Arduino would work on the RP2040, and to my surprise, it didn't. Turns out the ATmega328P's TWI interface supports a thing where I2C masters can be addressed as slaves in a multi-master configuration (see section 21.9.5 of the datasheet). This is used in the puzzle box, and not (natively) supported by the RP2040 processor. --- puzzle/dummy/main.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'puzzle/dummy/main.cpp') diff --git a/puzzle/dummy/main.cpp b/puzzle/dummy/main.cpp index df5b6f5..3d84679 100644 --- a/puzzle/dummy/main.cpp +++ b/puzzle/dummy/main.cpp @@ -25,7 +25,6 @@ const i2c_addr_t PBDRV_MOD_ADDR = ADDR_RX; void setup() { pbdrv_setup(); - Serial.begin(115200); } void loop() { -- cgit v1.2.3