Go to advanced search

by clicky
Fri Dec 09, 2016 5:03 pm
Forum: Java
Topic: Write to file faster
Replies: 6
Views: 2210

Re: Write to file faster

Can you, maybe, share your code? It is quite interesting problem to solve...
by clicky
Sat Dec 03, 2016 5:26 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 24014

Re: LibGDX on RPi

Cool! Good luck with it.
by clicky
Sat Dec 03, 2016 4:27 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 24014

Re: LibGDX on RPi

Odd. I don't remember doing it. Good to hear it all works for you!
Out of curiosity - what kind of LibGDX RPi project is that? :)
by clicky
Sat Dec 03, 2016 8:30 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 24014

Re: LibGDX on RPi

Yes, that would be it. OK, which RPi are you using it on? I have tried example on RPi2 and RPi3 and my home automation LibGDX works on RPi2 happily, but it doesn't use box2d light. I have pizero with external SPI display and I'll try example there. I am sure that most of LibGDX will work perfectly h...
by clicky
Fri Dec 02, 2016 11:30 am
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 24014

Re: LibGDX on RPi

Maybe there is an issue with particular OpenGL driver? Which driver do you have enabled? I have manually removed (read hacked it) new and kept one that was originally supplied with Raspbian. It works quite fast for me. Oh, and I didn't start it under xorg. I might need to try it, too. In the mean ti...
by clicky
Sun Nov 20, 2016 8:52 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 24014

Re: LibGDX on RPi

Here it is:

https://github.com/natdan/rpi-libgdx-example

Let me know if there are any issues with it.
by clicky
Fri Nov 18, 2016 6:06 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 24014

Re: LibGDX on RPi

It's easy. In <project-root>/build.gradle, after line: <code>compile "com.badlogicgames.gdx:gdx-backend-lwjgl:$gdxVersion"</code> add: <code>compile "com.badlogicgames.gdx:gdx-backend-jogamp:$gdxVersion"</code> And then in desktop project you can add DesktopLauncherJogl (or whatever your DesktopLaun...
by clicky
Tue Nov 15, 2016 2:17 pm
Forum: Java
Topic: Generating RSA Keys With Java on Raspberry Pi
Replies: 7
Views: 2277

Re: Generating RSA Keys With Java on Raspberry Pi

Is it worth you making simple test project and shared it on github? That way people like me would be able to just clone it locally and tinker with it a bit. It is quite curious issue you have but currently I don't have time to go through setting everything up and then going back and forward with you...
by clicky
Sun Oct 23, 2016 6:42 pm
Forum: Java
Topic: LibGDX on RPi
Replies: 38
Views: 24014

LibGDX on RPi

Thanks to @xranby for https://www.raspberrypi.org/forums/viewtopic.php?f=81&t=112806 I managed to do a tiny step forward after (re)reading the topic (for n-th time) and provide solution that is slightly easier for us LibGDX developers. I'll do HowTo now and credits at the end: build.gradle of LibGDX...
by clicky
Sun Oct 16, 2016 8:06 am
Forum: Java
Topic: Problems with the MH-Z16 CO2 Sensor
Replies: 9
Views: 3469

Re: Problems with the MH-Z16 CO2 Sensor

What's the problem you are encountering with i2c on pi4j with your sensor? Do you maybe want to share the code and error you are getting back?
by clicky
Sun Oct 09, 2016 7:53 pm
Forum: Java
Topic: Remote Java programming
Replies: 15
Views: 10305

Re: Remote Java programming

@jingram - thanks for posting it! I was just getting ready to fix my home automation project with some proper deployment scripts and you saved me trouble getting it myself. Your solution is perfect for 'releases'! Cheers! :)
by clicky
Sun Oct 09, 2016 7:51 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3669

Re: Wii Nunchuck using Java

I've finally got my RPi3 on the desk and gave it a go. At first I've got something similar to you: above program would run for couple of seconds and then stopped (printing only -1s). Then I increased bottom sleep to 200ms (re-connected everything - in the mean time I played with i2c scan tool - see ...
by clicky
Fri Oct 07, 2016 9:42 am
Forum: Java
Topic: RPi libgdx game development framework
Replies: 28
Views: 15339

Re: RPi libgdx game development framework

Thanks. I might give them a go!
by clicky
Wed Sep 28, 2016 7:08 am
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3669

Re: Wii Nunchuck using Java

RPi3! Bah - I missed that. I've tested it on RPi2 (that's the first and only non RPi1 I've found around). I'll find where I misplaced my RPi3 to and use that one for further testing. At least we've got somewhere. There is timing issue as regular dev.read(<address>, <buffer>...) doesn't work but it n...
by clicky
Tue Sep 27, 2016 8:02 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3669

Re: Wii Nunchuck using Java

Thanks for the link. It helped! Anyway - managed to set up everything on my desk (and use this opportunity to teach my 13yrs old about RPi's i2c) and make pi4j to cooperate. My original code was OK, but, as you pointed out didn't work. I have couple of theories what went wrong, but without going dee...
by clicky
Tue Sep 27, 2016 1:01 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3669

Re: Wii Nunchuck using Java

I asked for connections so I don't have to look around before I connect it to my RPi O: )
Yes, having working Python code is perfect - gives us some confidence that you are on the right track.
by clicky
Tue Sep 27, 2016 7:41 am
Forum: Java
Topic: latest eclipse for raspberrian
Replies: 2
Views: 1506

Re: latest eclipse for raspberrian

I thought Eclipse has SWT which is native to platform. So, wouldn't we need Linux ARM version of Eclipse for it to work?
by clicky
Tue Sep 27, 2016 7:31 am
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3669

Re: Wii Nunchuck using Java

Example is for Wii Motion Plus and it has different i2c addresses - especially for initialisation, etc... I am about to connect nunchuck to my RPi and can give it a go then. Did you do anything differently or just directly connected SDA/SCL to nunchuck? (plus GND and 3.3V) Also, looking at your outp...
by clicky
Sat Sep 24, 2016 8:08 pm
Forum: Java
Topic: Wii Nunchuck using Java
Replies: 16
Views: 3669

Re: Wii Nunchuck using Java

I think I know where the problem is: byte[] initBuf = new byte[] {0x40,0x00}; dev.write(dev.getAddress(),initBuf, 0, 2); should really read: byte[] initBuf = new byte[] {0x00}; dev.write(0x40,initBuf, 0, 1); and dev.write(dev.getAddress(),(byte)0x00); Thread.sleep(100); dev.read(dev.getAddress(), bu...
by clicky
Mon Jul 25, 2016 6:53 am
Forum: Java
Topic: Java ME in Raspberry pi.
Replies: 5
Views: 1994

Re: Java ME in Raspberry pi.

I do sympathise with you. Not sure why ME is requirement though. Maybe it is worth pointing out that fully blown JDK is available and is far better choice...
by clicky
Sat Jul 23, 2016 4:00 pm
Forum: Java
Topic: Java ME in Raspberry pi.
Replies: 5
Views: 1994

Re: Java ME in Raspberry pi.

Maybe the best advice would be to use regular JDK/JRE instead of ME.
by clicky
Thu Jul 21, 2016 5:51 pm
Forum: Java
Topic: Using RPi.GPIO with Jython
Replies: 3
Views: 2075

Re: Using RPi.GPIO with Jython

It is definitively question for this forum. I can see three solutions: 1. as @EULERPI said - use fact that Jython runs on JVM and you can use any Java jars/classes with it 2. learn how to make whatever is glue/interface for Jython towards outside world and re-implement RPI.GPIO 3. learn how Jython c...
by clicky
Tue Jul 19, 2016 12:09 pm
Forum: Java
Topic: Using Pi4J to control an ESC and brushless motor
Replies: 18
Views: 5108

Re: Using Pi4J to control an ESC and brushless motor

What do you mean by servoblasters on order? You mean Servo/PWM i2c board? When I mentioned servoblaster - I was talking about software: https://github.com/richardghirst/PiBits/tree/master/ServoBlaster I am sure your ESC will happily work with it! Wiring it is as straight forward as wiring GND to GND...
by clicky
Mon Jul 18, 2016 6:20 pm
Forum: Java
Topic: Using Pi4J to control an ESC and brushless motor
Replies: 18
Views: 5108

Re: Using Pi4J to control an ESC and brushless motor

Not directly. But, with servo you'll be able to see result of your coding. If you have picked wrong pin, coded it differently, swapped top and bottom and/or not pushed signal to right values... Servo can easily be used as good 'debugging' tool. Only that... And you can code for it in shell to start ...
by clicky
Mon Jul 18, 2016 6:02 pm
Forum: Java
Topic: Controlling DAC board multiple threads: I2CException "-20001
Replies: 1
Views: 975

Re: Controlling DAC board multiple threads: I2CException "-2

There was a request for pi4j to do some thread synchronisation and if you check code here (https://github.com/Pi4J/pi4j/blob/develop/pi4j-core/src/main/java/com/pi4j/io/i2c/impl/I2CBusImpl.java) you'll see it uses ReentrantLock. But problem you're getting is much lower in bowels of kernel/modules. E...

Go to advanced search