Desktop computer or laptop

Hi,

  • I wish to work on an ESP32 arduino Sketch, sometimes on my desktop computer sometimes on my laptop.
  • I prefer to avoid to keep the files on the cloud like Onedrive.
  • Will it work if I save my Sketch on a USB key an connect the usb key on my laptop or my desktop computer ?
  • At home using my desktop computer and outside using my laptop.

One approach is to keep the "sketch folder" on a thumb drive, and access it on either computer.

Will I need to indicate the pathways for each computer to find the ino adn .h files ??

The pathway is set in Files>Preferences when you select the sketch folder (Sketchbook Location). That is, for Arduino IDE 1.8.19, as I don't use IDE 2.x.

Local code libraries should be in the libraries subfolder of the sketch folder, others are in the Arduino installation directories.

then I file choose the usb key !! Thanks

You can make a portable install of IDE 1.x on the flash drive. It will include everything you need (including IDE, libraries and sketches).

Advantage is that you always will use the same board packages and libraries on both systems.

Be aware that Just saving the ino files will not be anough. A sketch is a directory which contains one ino file with the same name (and possibly other files).

E.g.

myProject
+--myProject.ino

Really interesting solution. thanks

Using Linux, I keep my sketchbook folder on my main desktop and access files from other computers on my local network with SSH, you should be able to do the same with SAMBA.

1 Like

I have a portable installation of the Arduino IDE on separate data drive on my PC. This is my Y: drive and it has all my project data,email,documents etc on it.

I use Syncfolders to sync, around every 15 minutes, the Y: drive to an external USB 3 attached hard drive called X:

If I want to work away from my desktop PC, go on holiday etc, I just grab the X: drive an plug it into a laptop.

Every so often I swap the X: drive I have with one my brother keeps who lives around 1km away.

You can use thumb drives for this, but they are real slow.

It is exactly the same when using Arduino IDE 2.x.