User forums > Embedded development
C::B as IDE for Arduino, ESP8266 and similar
oBFusCATed:
--- Quote from: AZ on June 15, 2016, 03:36:14 am ---I can open the project in CB. But when i try to add an ino file - it won't open in the CB, but, at the same time i will NOT get any error messages.
--- End quote ---
What exactly do you do to add the file?
--- Quote ---Next if i proceed to compile, i'll get a compilation error ("fatal error: aprintf.h: No such file or directory") and the ino file will "appear" in the CB.
please advise.
--- End quote ---
Do you have this file in the search paths specified in the Project -> Build options -> <your target> -> Search paths -> Compiler or in the Settings -> Compiler -> <your compiler> or in the default search paths of your compiler?
AZ:
--- Quote from: oBFusCATed on June 15, 2016, 08:39:03 am ---What exactly do you do to add the file?
--- End quote ---
I right click on the project and "add file" . It appears under the "Others", but won't open in the editor.
No i don't have this ino file specified in the search directories. Do i have to ?
So apparently the problem was with me adding the wrong sketch.
Once i gave it the correct sketch i was able to compile and deploy it.
Now, where is the the serial monitor?
Also the sketch is loaded as "plain text" file. Is there a better way to treat sketches?
oBFusCATed:
--- Quote from: AZ on June 15, 2016, 08:50:34 am ---Now, where is the the serial monitor?
--- End quote ---
There is no such thing...
--- Quote from: AZ on June 15, 2016, 08:50:34 am ---Also the sketch is loaded as "plain text" file. Is there a better way to treat sketches?
--- End quote ---
Either rename the file to .cpp or add the .ino in the sources list in Project ->Project tree -> Edit file types & categories.
AZ:
--- Quote from: oBFusCATed on June 15, 2016, 07:59:32 pm ---
--- Quote from: AZ on June 15, 2016, 08:50:34 am ---Now, where is the the serial monitor?
--- End quote ---
There is no such thing...
--- Quote from: AZ on June 15, 2016, 08:50:34 am ---Also the sketch is loaded as "plain text" file. Is there a better way to treat sketches?
--- End quote ---
Either rename the file to .cpp or add the .ino in the sources list in Project ->Project tree -> Edit file types & categories.
--- End quote ---
got it. Thank you.
i just ( doh :( ) realized that the "Arduino project" wizard that i have installed with CB is done by Stanley Huang from arduinodev/codebloks. At the same time your project https://github.com/obfuscated/cb_arduino_template - looks very close to the wizard.
So do i have to remove that wizard somehow and install your template? And if that is true - how do i go about it ?
Thank you
oBFusCATed:
My template is improved version of two previous attempts.
I don't know what is the state of the arduino wizard shipped with 16.01 or newer.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version