Skip to content

Commit c2940b2

Browse files
authored
Merge pull request #82 from ElectronicCats/dev
Fix serial printf bug
2 parents 5e324c4 + 5229f4a commit c2940b2

File tree

4 files changed

+10
-34
lines changed

4 files changed

+10
-34
lines changed

examples/IMU_Zero/Makefile

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
11
# BOARD_TAG = arduino:mbed_rp2040:pico
2-
BOARD_TAG = rp2040:rp2040:rpipico
3-
MONITOR_PORT = /dev/cu.usbmodem11401
2+
# BOARD_TAG = rp2040:rp2040:rpipico
3+
BOARD_TAG = esp32:esp32:XIAO_ESP32C3
4+
MONITOR_PORT = /dev/cu.usbmodem132401
45
ARDUINO_CLI_PATH := arduino-cli
56

6-
help:
7-
@echo "Usage: make [target] [BOARD=rp2040|esp32|esp32s3]"
8-
@echo "Targets:"
9-
@echo " compile: compile the firmware"
10-
@echo " upload: upload the firmware to the board"
11-
@echo " monitor: monitor the serial port"
12-
@echo " clean: clean the cache"
13-
@echo " all: compile, upload, monitor"
14-
@echo "Examples:"
15-
@echo " make compile BOARD=rp2040"
16-
@echo " make upload BOARD=rp2040"
17-
@echo " make all BOARD=esp32s3"
18-
197
compile:
208
$(ARDUINO_CLI_PATH) compile --fqbn $(BOARD_TAG) --export-binaries
219

examples/MPU6050_raw/Makefile

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,17 @@
11
# BOARD_TAG = arduino:mbed_rp2040:pico
2-
BOARD_TAG = rp2040:rp2040:rpipico
3-
MONITOR_PORT = /dev/cu.usbmodem11401
2+
# BOARD_TAG = rp2040:rp2040:rpipico
3+
BOARD_TAG = esp32:esp32:XIAO_ESP32C3
4+
MONITOR_PORT = /dev/cu.usbmodem132401
45
ARDUINO_CLI_PATH := arduino-cli
56

6-
help:
7-
@echo "Usage: make [target] [BOARD=rp2040|esp32|esp32s3]"
8-
@echo "Targets:"
9-
@echo " compile: compile the firmware"
10-
@echo " upload: upload the firmware to the board"
11-
@echo " monitor: monitor the serial port"
12-
@echo " clean: clean the cache"
13-
@echo " all: compile, upload, monitor"
14-
@echo "Examples:"
15-
@echo " make compile BOARD=rp2040"
16-
@echo " make upload BOARD=rp2040"
17-
@echo " make all BOARD=esp32s3"
18-
197
compile:
208
$(ARDUINO_CLI_PATH) compile --fqbn $(BOARD_TAG) --export-binaries
219

2210
upload:
2311
@$(ARDUINO_CLI_PATH) upload -p $(MONITOR_PORT) --fqbn $(BOARD_TAG) --verbose
2412

2513
monitor:
26-
@$(ARDUINO_CLI_PATH) monitor -p $(MONITOR_PORT) --config baudrate=38400
14+
@$(ARDUINO_CLI_PATH) monitor -p $(MONITOR_PORT) --config baudrate=9600
2715
# screen $(MONITOR_PORT) 9600
2816

2917
clean:

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=MPU6050
2-
version=1.3.0
2+
version=1.3.1
33
author=Electronic Cats
44
maintainer=Electronic Cats <store@electroniccats.com>
55
sentence=MPU6050 Arduino Library.

src/MPU6050_9Axis_MotionApps41.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ THE SOFTWARE.
8787
// after moving string constants to flash memory storage using the F()
8888
// compiler macro (Arduino IDE 1.0+ required).
8989

90-
//#define DEBUG
90+
// #define DEBUG
9191
/* Control whether debugging macros are active at compile time */
9292
#undef DB_ACTIVE
9393
#ifdef DEBUG
@@ -597,7 +597,7 @@ uint8_t MPU6050_9Axis_MotionApps41::dmpInitialize() {
597597
#ifdef DEBUG
598598
DEBUG_PRINT(F("Read bytes: "));
599599
for (j = 0; j < 4; j++) {
600-
DEBUG_PRINTF(dmpUpdate[3 + j], HEX);
600+
DEBUG_PRINT(dmpUpdate[3 + j], HEX);
601601
DEBUG_PRINT(" ");
602602
}
603603
DEBUG_PRINTLN("");

0 commit comments

Comments
 (0)