开发者

Programming Languages Targeting Arduino/AVR

What programming languages or environments ta开发者_JS百科rget Arduino or AVR besides the default C++ environment?

PS: I'm using Mac OS 10.5.


Some commonly known ones:

  • Ada
  • Basic, alt, alt
  • Forth, alt, alt
  • Java
  • Pascal
  • Python
  • C (mac) and C (Windows)

In theory you should be able to extend avr-gcc to support other languages, though this is no small undertaking. I should also caveat that support for languages other than C typically comes with some fairly weighty restrictions on language components -- for instance, even with C++ it's discouraged to be instantiating new objects as malloc and free are extremely expensive in both memory space and cycles.

Besides using Google, the following references are applicable:

  • http://www.piclist.com/techref/atmel/avr/languages.htm


An incredibly popular option is to program your Arduino directly in C, versus Wiring (the programming language used by the Arduino IDE). This allows a lot more control over the low-level operation of your microcontroller.

The Arduino IDE supports C (as Wiring is based on C and C++) and compiles with the AVR-GCC toolchain, or you can go without an environment and use a text editor, the command line (with AVR-GCC toolchain installed) and avrdude (a command-line tool available on MAC, Windows and Linux).

AVR devices can also be easily programmed with Atmel Studio (formerly AVR Studio), which can use a multitude of programming languages.

The Arduino forums have a lot of information for programming in C.

Information regarding the AVR-GCC toolchain can be found here.
http://www.nongnu.org/avr-libc/

I personally quite enjoyed taking the hard way around and learning how to program an AVR chip without the IDE, but this comes down to personal preference and how much you want to learn.


You can use Java. Check Arduino and Java. It contains some instructions that may be useful to you.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜