arduino
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| arduino [2015/03/21 15:03] – [avrdude and AVR ISP mkII with USB on Linux] karl | arduino [2018/03/26 00:45] (aktuell) – [C++ new operator] karl | ||
|---|---|---|---|
| Zeile 2: | Zeile 2: | ||
| 10.12.2014 | 10.12.2014 | ||
| - | ===== Sublime IDE ===== | + | ====== Eclipse Arduino IDE ====== |
| + | 4.4.2016 | ||
| + | |||
| + | https:// | ||
| + | |||
| + | * Download and extract Eclipse IDE for C/C++ Mars.2 | ||
| + | * Go to Help-> | ||
| + | * Install Arduino eclipse IDE V2 | ||
| + | * Install AVR Eclipse Plugin V2.3.4 | ||
| + | * Window -> Preferences -> Arduino: Point to your Arduino IDE installation (V1.6.5 recommended) | ||
| + | |||
| + | ===== New Project ===== | ||
| + | * Create a new Arduino Project | ||
| + | * rename your .ino file into .cpp | ||
| + | * add #include < | ||
| + | |||
| + | Now you are ready to go! \\ | ||
| + | If you want to open this project in Arduino IDE, rename the .cpp file back to .ino | ||
| + | |||
| + | |||
| + | |||
| + | ====== Sublime IDE ====== | ||
| https:// | https:// | ||
| This should be great, since it has the sublime autocompletion, | This should be great, since it has the sublime autocompletion, | ||
| - | ===== ino - The Command Line Interface ===== | + | ====== ino/ |
| 10.12.2014 | 10.12.2014 | ||
| Zeile 20: | Zeile 41: | ||
| sudo pip install glob2 jinja2 pyserial configobj ordereddict argparse | sudo pip install glob2 jinja2 pyserial configobj ordereddict argparse | ||
| sudo apt-get install python-serial | sudo apt-get install python-serial | ||
| + | sudo make install | ||
| Here is the documentation for it: \\ | Here is the documentation for it: \\ | ||
| http:// | http:// | ||
| + | |||
| + | ==== Update: ino forked into Arturo ==== | ||
| + | since ino wasn't supported any more, a fork of the project named " | ||
| + | https:// | ||
| + | |||
| + | |||
| ==== ~/.inorc ==== | ==== ~/.inorc ==== | ||
| Zeile 43: | Zeile 71: | ||
| **Important: | **Important: | ||
| + | |||
| + | ==== Error when moving host platform ==== | ||
| + | Today I moved my ino-project to a new computer, and forgot to erase the .build directory. | ||
| + | I got nothing-saying error messages like this: | ||
| + | < | ||
| + | karl@LackerServer:/ | ||
| + | Traceback (most recent call last): | ||
| + | File "/ | ||
| + | main() | ||
| + | File "/ | ||
| + | args.func(args) | ||
| + | File "/ | ||
| + | self.make(' | ||
| + | File "/ | ||
| + | ret = subprocess.call([self.e.make, | ||
| + | File "/ | ||
| + | return Popen(*popenargs, | ||
| + | File "/ | ||
| + | errread, errwrite) | ||
| + | File "/ | ||
| + | raise child_exception | ||
| + | OSError: [Errno 2] No such file or directory | ||
| + | </ | ||
| + | |||
| + | |||
| ==== Compile existing project ==== | ==== Compile existing project ==== | ||
| If we have an existing folder, with it's source files, we have to do a little adoption, so we can compile it with **ino**:\\ | If we have an existing folder, with it's source files, we have to do a little adoption, so we can compile it with **ino**:\\ | ||
| Zeile 132: | Zeile 185: | ||
| </ | </ | ||
| - | ===== avrdude and AVR ISP mkII with USB on Linux ===== | + | ====== avrdude and AVR ISP mkII with USB on Linux ====== |
| unlike as decribed here, which is a bit more complicated | unlike as decribed here, which is a bit more complicated | ||
| http:// | http:// | ||
| Zeile 147: | Zeile 200: | ||
| sudo service udev restart | sudo service udev restart | ||
| - | unplug the programmer and plig it in again. | + | unplug the programmer and plug it in again. |
| now avrdude can be used without sodo! | now avrdude can be used without sodo! | ||
| Zeile 155: | Zeile 208: | ||
| - | ===== Fuse Bit Calculator ===== | + | ====== Fuse Bit Calculator |
| http:// | http:// | ||
| - | ===== avrdude ===== | + | ====== avrdude |
| ==== Example Invocations ==== | ==== Example Invocations ==== | ||
| http:// | http:// | ||
| + | ====== Arduino and size optimization ====== | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * http:// | ||
| + | * very interesting: | ||
| + | * http:// | ||
| + | |||
| + | ====== Arduino IDE for the ESP8266 ====== | ||
| + | https:// | ||
| + | |||
| + | ====== C++ new operator ====== | ||
| + | Here is a great article about this topic. | ||
| + | |||
| + | http:// | ||
| + | http:// | ||
| + | |||
| + | Most useful is the placement operator for static allocated memory. | ||
| + | |||
| + | < | ||
| + | #include <new> // very important, otherwise you get helpless compile errors! | ||
| + | #include " | ||
| + | |||
| + | #define m(x) new (MemoryDispenser:: | ||
| + | |||
| + | |||
| + | // usage example: | ||
| + | JobController job = m(JobController(2)); | ||
| + | </ | ||
| + | {{tag> | ||
arduino.1426946592.txt.gz · Zuletzt geändert: von karl
