OK, v pvom rade si treba pod Windows nainstalovat WinAVR, alebo v Ubuntu avr-gcc. Potom Netbeans a v nich C/C++ pack.
Potom v Build Tools tabe podla tohto linku nakonfigurovat AVR tool chain
http://java.dzone.com/news/arduino-development-using?utm_source=am6_feedtweet&utm_medium=twitter&utm_campaign=toya256ForRSS
V Code Assistance tabe pridat cesty k include filom (budto tie z WinAVR alebo tie z avr-gcc).
Neinstalovat Ardino plugin, kedze sa chceme zbavit Arduno vrstvy a pracovat priamo s hardware.
A potom uz len zohnat dobry makefile ;-) Aby tam fungoval compile a upload do Duemilanove.