NHD-C0220BiZ-FSW-FBW-3V3M no display

Comments

2 comments

  • kbless7

    For those wondering, I was able to get it working. I had to change the code to the following. The lines with the strike through in the init function change the contrast. The write command in the main loop was what made it not function before. Credit to http://shawnreeves.net/wiki/index.php?title=Photo-gate_timer_with_a_PICAXE_20M2 for having the proper data send command.

    init:
      pause 1000

      hi2csetup i2cmaster, $78, i2cslow, i2cbyte
      hi2cout 0, ($00)
      hi2cout 0, ($38)
      pause 10
      hi2cout 0, ($39)
      pause 10
      hi2cout 0, ($14)

      [s]hi2cout 0, ($78)[/s]
      hi2cout 0, ($7F)

      [s]hi2cout ($5E)[/s]
      hi2cout 0, ($5D)

      hi2cout 0, ($6D)
      hi2cout 0, ($0C)
      hi2cout 0, ($01)
      hi2cout 0, ($06)
      pause 10

    main:
      pause 500
      hi2cout 0, ($80) ; clears display
      [s]hi2cout ($40, %01110011)[/s]
      hi2cout $40, (%01110011)
      goto main

     

    0
  • Paul_B

    Glad to hear you got your display up and running!

    Thanks for sharing your solution, it will definitely help others!

    0

Please sign in to leave a comment.