Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: Big project and Sketch

  1. #1
    Junior Member
    Join Date
    Jan 2022
    Location
    Cairns , Qld, Australia
    Posts
    5

    Big project and Sketch

    Hello I am new to the Arduino IDE and I am struggling with only having one Sketch page or file to write all my code. In the past I would have many file and use #Include
    Is there a way to use a few Sketch's .
    Ray.

  2. #2
    Senior Member
    Join Date
    Mar 2017
    Location
    Oakland, CA, USA
    Posts
    394
    Most of my projects have at least several files and I don’t love using the Arduino IDE for them. (I’ll use it for small test programs.) My current favourite is Visual Studio Code plus the PlatformIO plug-in.

  3. #3
    Senior Member
    Join Date
    May 2017
    Posts
    125
    Several files in Arduino works.
    Simply put several *.ino files in one folder (you can put there also *.h or *.c files etc. and #include them).
    But you must have one *.ino file with the same name like the folder itself (there you have to do all #includes and so on).

  4. #4
    Senior Member
    Join Date
    Jul 2014
    Posts
    3,373
    Quote Originally Posted by larry_berlin View Post
    But you must have one *.ino file with the same name like the folder itself (there you have to do all #includes and so on).
    and this can even be empty, as long setup() and loop() are in a regular c/c++ file

  5. #5
    Senior Member BriComp's Avatar
    Join Date
    Apr 2014
    Location
    Cheltenham, UK
    Posts
    512

  6. #6
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,710
    If you work under Windows and don't like dependency on third party tools you can also have a look here: https://github.com/luni64/VisualTeensy. It simply sets up a vsCode Teensy project by generating some project files. Full support for vsCode intellisense, git integration etc. The 'unique selling point' (its for free of course) is that the generated project is self contained. I.e. you only need VisualTeensy once for generation of the project.



    The version from the video above is a bit old / slow. Here the current compilation speed (<10s from scratch)


  7. #7
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,710
    Quote Originally Posted by ezmartech View Post
    Can anyone share the tutorial?...
    The tutorial for what? There are a couple of different suggestions in this thread...

  8. #8
    Senior Member
    Join Date
    Jul 2014
    Posts
    3,373
    @luni,
    this one seems be a non teensy guy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •