I2C读取单字节的MPU6050数据和写寄存器: #define MPU6050_ADDR0xD0voidmpu6050_WriteByteData(uint8_t reg,uint8_t pdata){i2c_cmd_handle_t cmd=i2c_cmd_link_create();i2c_master_start(cmd);i2c_master_write_byte(cmd,MPU6050_ADDR|I2C_MASTER_WRITE,1);//有的要左移一位,有的不要i2c_master_write_...
cd ./proj_mpu6050/build esptool.py --chip auto --port /dev/cu.usbmodem143301 -b 921600 --before=default_reset --after=hard_reset write_flash --flash_mode qio --flash_freq 40m --flash_size 8MB 0x0000 bootloader/bootloader.bin 0x10000 proj_mpu6050.bin 0x8000 partition_table/partition-...