NHD-1.5-128128G not initializing
Hello-
I'm working with the NHD-1.5-128128G. As far as I can tell from reviewing the hardware schematics the device appears to be wired correctly. I follow the initialization procedures on pp 17 - 18 of the PDF manual (with the following caveats below) and get no activity from the device (the biggest reason I hate SPI devices; no way to tell if it's you that are doing something wrong since the device never has to acknowledge anything).
Caveats:
1) The unhelpful function names oled_Command_ and oled_Data_ don't provide any direction on what happens with the CS line. Does this line have to toggle every 8 bits, every group of related bytes, or even not at all (some devices allow CS to remain tied low)? I can't find anything in the manual that indicates this. Currently I toggle every byte.
2) I left out the oled_Clear_Screen() instruction as the manual doesn't give any further example of what this should look like and I don't care if the screen is clear or not if I should expect to see some flickering or random pixels lit up or what have you.
3) The manual gives a maximum SPI rate but doesn't say what the minimum nor recommended values are; my SPI clock runs at 12MHz which I assume should be fine.
-
Hi Eqqman,
1) Yes, the toggle of the CS line tells IC that communication is done and latched in. (Example Code:https://www.newhavendisplay.com/resources_dataFiles/excode/txt/Arduino/OLED_128128.txt)
2) This just blanks the screen and is fine to leave out if unneeded.
3) 12MHz should work0
Please sign in to leave a comment.
Comments
1 comment