NHD-2066 non Arduino sample code
We have not been able to turn on our NHD-2066 using the non Arduino c sample code (US2066) on your website. When reading the US2066 data sheet, section 5.1.3.1 (we are using SPI) it states that a byte value is broken into 2 bytes with the lower 4 bits of each byte set to 0. The US2066 sample code does not do this. We are looking to translate what the Arduino code does but are concerned since it has the Spi.begin commented out that it may not work with SPI. We cannot use Arduino. Does either the US2066 or US2066 Arduino sample code work with SPI? Also, are there other resources, other than the US2066 datasheet, that are available for a better understanding on communicating with the device? Thanks for any help
-
Hello Wmotter,
We will investigate the non-Arduino example code you mentioned.
The Arduino code you are referencing does work with SPI, it bit-bangs the SPI protocol.
When global variable mode is set to 2, the command() and data() functions send the appropriate data in case 2.
The following GitHub repositories are good references as well:
If you have any questions, don't hesitate to ask.
Best Regards,
Cody J.
0 -
The non Aquino code has 6 commands in the init. The Aquino code has around 30. What is the correct set to turn on the display and write something very basic so we can see that the display is on and showing something? Once we get to that milestone, I think things should be relatively down hill from there.
Thanks again.
0 -
Hello Wmotter,
I recommend using the initialization sequence seen in the Arduino code and make sure it matches the initialization code seen in the associated spec sheet of the exact display you are using. Afterwards, all you need to do is send ASCII character data to the display.
Which display are you trying to get up and running?
Best Regards,
Cody J.
0
Please sign in to leave a comment.
Comments
3 comments