diff --git a/examples/IMU_Zero/Makefile b/examples/IMU_Zero/Makefile index e5e6357..58286bd 100644 --- a/examples/IMU_Zero/Makefile +++ b/examples/IMU_Zero/Makefile @@ -1,21 +1,9 @@ # BOARD_TAG = arduino:mbed_rp2040:pico -BOARD_TAG = rp2040:rp2040:rpipico -MONITOR_PORT = /dev/cu.usbmodem11401 +# BOARD_TAG = rp2040:rp2040:rpipico +BOARD_TAG = esp32:esp32:XIAO_ESP32C3 +MONITOR_PORT = /dev/cu.usbmodem132401 ARDUINO_CLI_PATH := arduino-cli -help: - @echo "Usage: make [target] [BOARD=rp2040|esp32|esp32s3]" - @echo "Targets:" - @echo " compile: compile the firmware" - @echo " upload: upload the firmware to the board" - @echo " monitor: monitor the serial port" - @echo " clean: clean the cache" - @echo " all: compile, upload, monitor" - @echo "Examples:" - @echo " make compile BOARD=rp2040" - @echo " make upload BOARD=rp2040" - @echo " make all BOARD=esp32s3" - compile: $(ARDUINO_CLI_PATH) compile --fqbn $(BOARD_TAG) --export-binaries diff --git a/examples/MPU6050_raw/Makefile b/examples/MPU6050_raw/Makefile index 4748c58..58286bd 100644 --- a/examples/MPU6050_raw/Makefile +++ b/examples/MPU6050_raw/Makefile @@ -1,21 +1,9 @@ # BOARD_TAG = arduino:mbed_rp2040:pico -BOARD_TAG = rp2040:rp2040:rpipico -MONITOR_PORT = /dev/cu.usbmodem11401 +# BOARD_TAG = rp2040:rp2040:rpipico +BOARD_TAG = esp32:esp32:XIAO_ESP32C3 +MONITOR_PORT = /dev/cu.usbmodem132401 ARDUINO_CLI_PATH := arduino-cli -help: - @echo "Usage: make [target] [BOARD=rp2040|esp32|esp32s3]" - @echo "Targets:" - @echo " compile: compile the firmware" - @echo " upload: upload the firmware to the board" - @echo " monitor: monitor the serial port" - @echo " clean: clean the cache" - @echo " all: compile, upload, monitor" - @echo "Examples:" - @echo " make compile BOARD=rp2040" - @echo " make upload BOARD=rp2040" - @echo " make all BOARD=esp32s3" - compile: $(ARDUINO_CLI_PATH) compile --fqbn $(BOARD_TAG) --export-binaries @@ -23,7 +11,7 @@ upload: @$(ARDUINO_CLI_PATH) upload -p $(MONITOR_PORT) --fqbn $(BOARD_TAG) --verbose monitor: - @$(ARDUINO_CLI_PATH) monitor -p $(MONITOR_PORT) --config baudrate=38400 + @$(ARDUINO_CLI_PATH) monitor -p $(MONITOR_PORT) --config baudrate=9600 # screen $(MONITOR_PORT) 9600 clean: diff --git a/library.properties b/library.properties index 52aca82..64e09cc 100755 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=MPU6050 -version=1.3.0 +version=1.3.1 author=Electronic Cats maintainer=Electronic Cats sentence=MPU6050 Arduino Library. diff --git a/src/MPU6050_9Axis_MotionApps41.cpp b/src/MPU6050_9Axis_MotionApps41.cpp index 9d82c97..404d5a4 100644 --- a/src/MPU6050_9Axis_MotionApps41.cpp +++ b/src/MPU6050_9Axis_MotionApps41.cpp @@ -87,7 +87,7 @@ THE SOFTWARE. // after moving string constants to flash memory storage using the F() // compiler macro (Arduino IDE 1.0+ required). -//#define DEBUG +// #define DEBUG /* Control whether debugging macros are active at compile time */ #undef DB_ACTIVE #ifdef DEBUG @@ -597,7 +597,7 @@ uint8_t MPU6050_9Axis_MotionApps41::dmpInitialize() { #ifdef DEBUG DEBUG_PRINT(F("Read bytes: ")); for (j = 0; j < 4; j++) { - DEBUG_PRINTF(dmpUpdate[3 + j], HEX); + DEBUG_PRINT(dmpUpdate[3 + j], HEX); DEBUG_PRINT(" "); } DEBUG_PRINTLN("");