Skip to main content
added 174 characters in body
Source Link
Majenko
  • 105.9k
  • 5
  • 82
  • 139

Tabs are actually quite simple:

  • If it's named <something>.ino it will get merged with the main tab. It's just like working in one big file and you don't need to do anything special.
  • If it's named <something>.cpp or <something>.c it's a completely separate translation unit and has to be manually "enroled" into the Arduino system by including the Arduino.h header.

So it's simplest to just name them as INO files not CPP files and you don't have to do anything special.:

enter image description hereenter image description here

Tabs are actually quite simple:

  • If it's named <something>.ino it will get merged with the main tab. It's just like working in one big file and you don't need to do anything special.
  • If it's named <something>.cpp or <something>.c it's a completely separate translation unit and has to be manually "enroled" into the Arduino system by including the Arduino.h header.

So it's simplest to just name them as INO files not CPP files and you don't have to do anything special.

Tabs are actually quite simple:

  • If it's named <something>.ino it will get merged with the main tab. It's just like working in one big file and you don't need to do anything special.
  • If it's named <something>.cpp or <something>.c it's a completely separate translation unit and has to be manually "enroled" into the Arduino system by including the Arduino.h header.

So it's simplest to just name them as INO files not CPP files and you don't have to do anything special:

enter image description hereenter image description here

Source Link
Majenko
  • 105.9k
  • 5
  • 82
  • 139

Tabs are actually quite simple:

  • If it's named <something>.ino it will get merged with the main tab. It's just like working in one big file and you don't need to do anything special.
  • If it's named <something>.cpp or <something>.c it's a completely separate translation unit and has to be manually "enroled" into the Arduino system by including the Arduino.h header.

So it's simplest to just name them as INO files not CPP files and you don't have to do anything special.