kriswiner / LSM6DSM_LIS2MDL_LPS22HB

8 stars 3 forks source link

Move sketch to examples folder #2

Closed per1234 closed 6 years ago

per1234 commented 6 years ago

This change will cause the example sketch to be accessible via the Arduino IDE's File > Examples > LSM6DSM_LIS2MDL_LPS22HB menu.

This will also prevent problems caused by the folder name not matching the sketch name, as required by the Arduino IDE. When you open a sketch not meeting this requirement the Arduino IDE displays a dialog:

The file "EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly.ino" needs to be inside a sketch folder named "EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly". Create this folder, move the file, and continue?

Currently when you click "OK" the Arduino IDE moves only the file EM7180_LSM6DSM_LIS2MDL_LPS22HB_Butterfly.ino to the appropriately named folder, leaving behind Madgewick.ino, which will cause compilation of the sketch to fail.