This is where you talk about the NXJ hardware related topics such as the brick, sensors, LEGO pieces, etc.
11 posts • Page 1 of 1
Okay Lets say I wanted to have 2 sonar sensors on my NXT, would they both have to be plugged into the first port? My friend told me sonar only works on the first port, and if thats true, then you're only supposed to have one I2C sensor. But with I2C they have a send and recieve address, so theoretically couldnt I have two sonar on the first port and it would still communicate normally, i would just have to have a way to communicate which sonar I wanted, through the start byte (address byte)
Where did you find that code Takashic? And do i just replace or add the new code to the libraries I already have?
leJOS NXJ development team stores all code under development into Subversion code repository (called trunk) at the download site. So anybody can see and download their great on-going work. But, these code are not offcially released yet, so it might not be tested well and I would not recommend to replace the released code to the new code under development. I tested it totally with my own risk.
Xpyd3r wrote:Any idea when the new code will be released? because if its not in a month or two I'm going to have to work with that instead because I need the 4th port within the next few months
If you use Windows you can find the current build in the snapshot directory here:
http://lejos.svn.sourceforge.net/viewvc ... /snapshot/
Download everything you see in there and put them in the proper directories (i.e. replace every file in your current download with these ones). Then you'll need to reflash your firmware with this version.
okay well I'm using linux so essentially i replace the classes and then what? do i have to modify the build to include classes that werent previously there or is there more to it before i reflash? Sorry, i'm very new to this but i'm going to have to go head first into playing around with this code, but i'd like to have a pretty good idea of what im trying to do before i mess anything up and tips or advice would be great, Please and thanks
I believe the snapshot should work on Linux by just replacing your jar files with the .jar files in snapshot/lib, and lejos_nxt_rom.bin and StartUpText.bin from snapshot/bin. You sould then reflash. You should not need to do the Linux ant build again as it just builds nxjflash and the .so shared library files and your current ones should still work.
Who is online
Users browsing this forum: Yahoo [Bot] and 0 guests