Take the 2-minute tour ×
LEGO® Answers is a question and answer site for LEGO® and building block enthusiasts. It's 100% free, no registration required.

I know this question was asked in the past, but I want an up-to-date answer.

What is the best way to program with the NXT with a oriented object programming language? Ideally C#, C++ or Java (maybe Python).

I've search a bit, but I have difficulty to find what is popular today.

I'm really interested in Mindstorms, but I don't want to program with boxes.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

When we did NXT programming in university we used NXC (http://bricxcc.sourceforge.net/nbc/) as our primary language.

This is a C-stlye language, not exactly object-oriented, but seeing that NXT programming is practically equivalent to microcontroller programming, C is much better suited to this task in my opinion. In C you get a much clearer main loop that controls your robot, and I can't really see what benefits would object orientation bring to a platform that is clearly restricted in both input/output capabilities and computational resources.

But if you really need object oriented design, take a look at LeJOS: http://www.lejos.org/

share|improve this answer
    
The last update of NXC is 2011, I'm not sure it's still maintained. LeJOS seem to be updated frequently, I'll probably try this one. Thanks –  DarkPixel Apr 26 at 0:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.