Forgot to mention, what gotcha that I have found using Visual Studio,
Is their library search order does not match the Arduino Search Order.
For example with a current build of my Hexapod code, Arduino tells you:
Code:
Multiple libraries were found for "LSS.h"
Used: C:\Users\kurte\Documents\Arduino\libraries\LSS_Library_Arduino
Not used: C:\Users\kurte\Documents\Arduino\libraries\Lynxmotion_Smart_Servo_-LSS-
Multiple libraries were found for "SoftwareSerial.h"
Used: C:\Users\kurte\Documents\Arduino\libraries\SoftwareSerial
Not used: C:\arduino-1.8.13\hardware\teensy\avr\libraries\SoftwareSerial
Multiple libraries were found for "ST7735_t3.h"
Used: C:\Users\kurte\Documents\Arduino\libraries\ST7735_t3
Not used: C:\arduino-1.8.13\hardware\teensy\avr\libraries\ST7735_t3
Multiple libraries were found for "SPI.h"
Used: C:\Users\kurte\Documents\Arduino\libraries\SPI
Not used: C:\arduino-1.8.13\hardware\teensy\avr\libraries\SPI
Multiple libraries were found for "USBHost_t36.h"
Used: C:\Users\kurte\Documents\Arduino\libraries\USBHost_t36
Not used: C:\arduino-1.8.13\hardware\teensy\avr\libraries\USBHost_t36
Using library TeensyDebug at version 0.0.1 in folder: C:\Users\kurte\Documents\Arduino\libraries\TeensyDebug
Using library EEPROM at version 2.0 in folder: C:\arduino-1.8.13\hardware\teensy\avr\libraries\EEPROM
Using library LSS_Library_Arduino at version 1.3.1 in folder: C:\Users\kurte\Documents\Arduino\libraries\LSS_Library_Arduino
Using library SoftwareSerial at version 1.0 in folder: C:\Users\kurte\Documents\Arduino\libraries\SoftwareSerial
Using library ST7735_t3 at version 1.0.0 in folder: C:\Users\kurte\Documents\Arduino\libraries\ST7735_t3
Using library SPI at version 1.0 in folder: C:\Users\kurte\Documents\Arduino\libraries\SPI
Using library USBHost_t36 at version 0.1 in folder: C:\Users\kurte\Documents\Arduino\libraries\USBHost_t36
But when I load this into VisualMicro, it instead will use:
Code:
Not used: C:\arduino-1.8.13\hardware\teensy\avr\libraries\ST7735_t3
Not used: C:\arduino-1.8.13\hardware\teensy\avr\libraries\USBHost_t36
But for me is more of an issue as I do developement work on those two libraries, and for example with the USBHost code I am using a different branch with additional Bluetooth support
My current fixes for this (after I remember to do after new version of Teensyduino installed) is to remove the versions from Teensyduino and then have the VisualMicro than rescan...
Again not a big deal, but just something to keep an eye out for.