Skip to content

Commit

Permalink
Update BHI260 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 8, 2024
1 parent 2e56be1 commit 61f1a57
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/BHI260AP_aux_BMM150/BHI260AP_aux_BMM150.ino
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ void setup()
// Set the reset pin and interrupt pin, if any
bhy.setPins(BHI260AP_RST, BHI260AP_IRQ);

// Force update of the current firmware, regardless of whether it exists.
// After uploading the firmware once, you can change it to false to speed up the startup time.
bool force_update = true;
// Set the firmware array address and firmware size
bhy.setFirmware(firmware, fw_size, WRITE_TO_FLASH);
bhy.setFirmware(firmware, fw_size, WRITE_TO_FLASH, force_update);

#if WRITE_TO_FLASH
// Set to load firmware from flash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,11 @@ void setup()
// Set the reset pin and interrupt pin, if any
bhy.setPins(BHI260AP_RST, BHI260AP_IRQ);

// Force update of the current firmware, regardless of whether it exists.
// After uploading the firmware once, you can change it to false to speed up the startup time.
bool force_update = true;
// Set the firmware array address and firmware size
bhy.setFirmware(firmware, fw_size, WRITE_TO_FLASH);
bhy.setFirmware(firmware, fw_size, WRITE_TO_FLASH, force_update);

#if WRITE_TO_FLASH
// Set to load firmware from flash
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ void setup()
// Set the reset pin and interrupt pin, if any
bhy.setPins(BHI260AP_RST, BHI260AP_IRQ);

// Force update of the current firmware, regardless of whether it exists.
// After uploading the firmware once, you can change it to false to speed up the startup time.
bool force_update = true;
// Set the firmware array address and firmware size
bhy.setFirmware(firmware, fw_size, WRITE_TO_FLASH);
bhy.setFirmware(firmware, fw_size, WRITE_TO_FLASH, force_update);

#if WRITE_TO_FLASH
// Set to load firmware from flash
Expand Down

0 comments on commit 61f1a57

Please sign in to comment.