geetarista / st2-arduino Goto Github PK
View Code? Open in Web Editor NEWSublime Text 2 plugin for Arduino.
License: MIT License
Sublime Text 2 plugin for Arduino.
License: MIT License
This doesn't support including libraries coming with the Arduino application.
For example, this will not compile:
#include <LiquidCrystal.h>
LiquidCrystal lcd(10, 11, 12, 13, 14, 15, 16);
void setup()
{
lcd.begin(16, 2);
lcd.print("hello world");
}
void loop()
{
// do nothing
}
It gives this error:
applet/test.cpp:2:27: error: LiquidCrystal.h: No such file or directory
applet/test.cpp:4: error: 'LiquidCrystal' does not name a type
applet/test.cpp: In function 'void setup()':
applet/test.cpp:8: error: 'lcd' was not declared in this scope
make: *** [applet/test.o] Error 1
[Finished in 0.5s with exit code 2]
I am using Mac OS X 10.8 with the 1.0.1 version of the Arduino application.
On trying to compile or upload, I get this:
[Errno 2] No such file or directory
[cmd: [u'make', u'-e', u'-f', u'/Users/jhembach/Library/Application Support/Sublime Text 2/Packages/ST2-Arduino/Support/Makefile']]
[dir: /Users/jhembach/Documents/Arduino/hmxClock_v8]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
[Finished]
The folder and file definitely do exist though. I get this whether the package was installed manually or through package manager.
Also, Tools -> Arduino -> Monito USB port is greyed out in the menu. What am I missing / doing wrong here? Thanks.
No matter what I do I can't seem to create a keyboard shortcut for the "compile" command. "upload" works without issue. I've tried multiple values for the specific key used by the compile command.
[
{ "keys": ["super+ctrl+shift+c"], "command": "complie" },
{ "keys": ["super+ctrl+shift+u"], "command": "upload"}
]
Also, is it possible to create a combo command: compile the sketch and if the compile is successful then execute the upload command? I'd then like to create a shortcut key for that.
Thanks!
Reed
Hello,
Today, I tried to build my code and ST2 console show me this message.
[Errno 2] No such file or directory
[cmd: [u'/usr/local/share/python/ino', u'build']]
[dir: /home/single9/Documents]
[path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin]
[Finished]
If I am working on an Arduino sketch, I currently need to switch between "Arduino-Compile" and "Arduino-Upload", as the upload command doesn't check for changes and recompiles if there are changes.
This would do it...
{
"caption": "Compile Arduino sketch",
"command": "compile"
},
{
"caption": "Upload Arduino sketch",
"command": "upload"
}
When building any .ino
file that works fine with ino build
, I get following error:
Linking firmware.elf
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/lib/avr5/crtm328p.o:(.init9+0x0): undefined reference to `main'
make: *** [.build/uno/firmware.elf] Error 1
Make failed with code 2
[Finished in 0.6s with exit code 1]
Example ino
-file:
void setup()
{
// Nothing
}
void loop()
{
// Nothing
}
Thank you very much for this beautiful plugin! It works like a charm on Linux.
I would like to ask if there is an opportunity to change a path to 'ino'?
{
"cmd": ["/usr/local/share/python/ino", "build"],
"selector": "source.c++.arduino",
"working_dir": "$file_path/.."
}
How to override path?
When I try to compile project I get an error
Compiling Watcher...
Creating /home/misha/Arduino_Build/Watcher/Watcher.ino.cpp.o...
/bin/sh: 1: avr-g++: not found
[Stino - Error 127]
ARDUINO 1.6.4 - 2015.05.06
according to Arduino blog http://arduino.cc/blog/2012/10/22/arduino-1-5-support-for-the-due-and-other-processors-easier-library-installation-simplified-board-menu-etc/
Arduino Due(2) IDE comes with multi-architecture support (atmega328 and ARM) and the compile path is changed from
$(ARDUINO_DIR)/hardware/arduino/libraries
to
CORE ?= avr
Hi, I just tried to install this awesome plugin on my Sublime Text. However, I can't seem to find ESP8266 boards when I try to select them. Is ESP8266 supported?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.