Skip to content

Sending text to display no longer working? < board.send_sysex( STRING_DATA, util.str_to_two_byte_iter( text ) ) > #128

Description

@nildude

Hi fellow tinkers,

I am suddenly having issues writing outputs to my DF Robot 2x16 LDC display. I was previously able to direct all text messages to the display but installing the latest version of pyFirmata has resulted in text not showing up:

I am using the board.send_sysex( STRING_DATA, util.str_to_two_byte_iter( text ) ) method.

I am not getting any error codes and not sure how to further troubleshoot?

The python code looks like this:

import pyfirmata
from pyfirmata import Arduino, util, STRING_DATA

# Setting up Arduino
if __name__ == '__main__':
    board = pyfirmata.Arduino('COM4') # '/dev/ttyACM0'
    #board = pyfirmata.Arduino('/dev/ttyACM0') # '/dev/ttyACM0'
    print("Communication Successfully started")


it = pyfirmata.util.Iterator(board)
it.start()

def msg( text ):
    if text:
        board.send_sysex( STRING_DATA, util.str_to_two_byte_iter( text ) )

if __name__ == '__main__': 
 msg('Testing test')
 msg('Second line') 

Thank you for your assistance.

Best regards
Lars Henrik

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions