HX8357 tutorial fails with arduino Leonardo

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
skypickle
 
Posts: 57
Joined: Thu Jun 22, 2017 8:11 am

HX8357 tutorial fails with arduino Leonardo

Post by skypickle »

I was following this tutorial
https://learn.adafruit.com/adafruit-3-5 ... ut/pinouts

and it works well with an arduino uno as well as a pro micro.

I recently bought 2 arduino Leonardos and made all the appropriate connections.
Although the serial monitor indicates the sketch is running, nothing displays on the HX8357.
I tried 2 different Leonardo boards and both only show a lit but blank screen.
Substituting in an arduino uno or pro micro gives the intended screen test.

I did notice that after I press upload, the leonardo goes into bootloader mode and the com port changes. I do not get errors, the code seems to upload and the com port then changes back to the number it normally shows. The serial monitor shows the code executing but nothing on the display.

I also notice that when I connect the leonardo (either one) I can get board info indicating the serial connection is good. However, when I press the green arrow in the arduino ide to compile and upload I get the following lines in the ide:



java.io.IOException: j s sc.SerialPortException: Port name - COM11; Method name - setEventsMask(); Exception type - Can't set mask.
at processing.app.Serial.dispose(Serial.java:173)
at processing.app.SerialMonitor.close(SerialMonitor.java:147)
at processing.app.AbstractMonitor.suspend(AbstractMonitor.java:113)
at processing.app.Editor$UploadHandler.run(Editor.java:2075)
at java.lang.Thread.run(Thread.java:748)
Caused by: j s sc.SerialPortException: Port name - COM11; Method name - setEventsMask(); Exception type - Can't set mask.
at j s sc.SerialPort.setEventsMask(SerialPort.java:279)
at j s sc.SerialPort.removeEventListener(SerialPort.java:1064)
at j s sc.SerialPort.closePort(SerialPort.java:1090)
at processing.app.Serial.dispose(Serial.java:170)
... 4 more


Clicking the green checkmark again allows the upload. but still no graphics.

The only thing I can think of is that the pinout on the leonardo is different than the uno. But I reviewed the documentation and the hardware location of the pins are the same.

In addition the older uno begins executing the sketch as soon as it gets power. The leonardo does not.

User avatar
adafruit_support_carter
 
Posts: 29168
Joined: Tue Nov 29, 2016 2:45 pm

Re: HX8357 tutorial fails with arduino Leonardo

Post by adafruit_support_carter »

Please don't cross post.
viewtopic.php?f=47&t=190653

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”