Yes, that all looks fine - it should work!
Perhaps try: g.setContrast(0.5, 7) and see if it goes black. It looks like different LCDs need wildly different drive voltages on them.
g.setContrast(0.5, 7)
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Yes, that all looks fine - it should work!
Perhaps try:
g.setContrast(0.5, 7)
and see if it goes black. It looks like different LCDs need wildly different drive voltages on them.