View Single Post
Old 01-20-2017, 01:20 PM   #63 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 828
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by skybolt View Post
tVago:

Are you using the standard Arduino UI to compile? If so, what's your standard process for adding a new sketch? I've just downloaded 20170116_194. Since it's a cpp file, I can either rename it .ino, or make a blank .ino and add the new code as main.cpp (or other name).
I use my text editor, TextPad, to edit the code itself. It does a very good job of formatting the code for ease of understanding.

When I want to compile the code, I just open up an Arduino IDE session, select the board, serial port, and programmer (if needed), paste the code into the IDE editor window, then upload the code into my test / production platform. The IDE does not do much of anything beyond that for me.

Quote:
Originally Posted by skybolt View Post
Never mind, these steps seem to work:

1. Name file simple name like main.cpp
2. Save blank .ino as project from Arduino UI
3. Copy main.cpp to project folder.
4. Compile and enjoy! Any issues with compiling are flags, environment, etc. In other words, not implementation errors.
Yah, something like that.

Last edited by t vago; 01-20-2017 at 01:22 PM.. Reason: saw updated post from skybolt
  Reply With Quote