Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Novice
1,143 Views

UPM ST7735 Libraries under Java

Jump to solution

Since the latest updates to MRAA, I've been having great luck programming Java apps to interact with the GPIO, UART and SPI pins with the Intel Edison Breakout Board and the Sparkfun GPIO breakout boards. Thanks!

One of my new projects involve the Adafruit 128x128 TFT display which utilizes the ST7735 chipset and communicates via SPI. I noticed that there is a UPM library available for the ST7735 chip using SPI, but I've not had much luck using it. I'm able to load the library, but as soon as I instantiate the ST7735 class (ST7735 lcd = new ST7735((short) 45, (short) 48, (short) 47, (short) 46); ) it fails. There is no error or stacktrace, but there is something in the native code that is causing Java to hang and not continue executing.

The Java debugger shows that it dips into the native code and it detaches from there. Running GDC on the Edison shows nothing (it is running a pthread, which I'm assuming is the so running), but nothing of value. Nothing is output to the system.err log on the console either.

The Java code I'm trying to run is : https://github.com/intel-iot-devkit/upm/blob/master/examples/java/ST7735Sample.java upm/ST7735Sample.java at master · intel-iot-devkit/upm · GitHub , with the pins numbers matching the csLCD, cSD, rs and rst matching my setup. I'm running the pins through a logic converter to bump the logic voltage up to 3v3.

 

Any help or direction would be appreciated. Thanks!

 

-Nick


Accepted Solutions
Highlighted
Employee
5 Views

Hello QueTwo,

That is weird, did you make sure to install the latest versions of both MRAA and UPM. If so, then you could contact the example creator, he may have a more accurate response for you. You can learn who created the example in https://github.com/intel-iot-devkit/upm/blob/master/examples/java/ST7735Sample.java upm/ST7735Sample.java at master · intel-iot-devkit/upm · GitHub, he added his email to the code.

Peter.

View solution in original post

0 Kudos
2 Replies
Highlighted
Employee
6 Views

Hello QueTwo,

That is weird, did you make sure to install the latest versions of both MRAA and UPM. If so, then you could contact the example creator, he may have a more accurate response for you. You can learn who created the example in https://github.com/intel-iot-devkit/upm/blob/master/examples/java/ST7735Sample.java upm/ST7735Sample.java at master · intel-iot-devkit/upm · GitHub, he added his email to the code.

Peter.

View solution in original post

0 Kudos
Highlighted
Novice
5 Views

Will do, thanks.