Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nildude opened this issue Dec 7, 2023 · 1 comment

Comments

@nildude
Copy link

nildude commented Dec 7, 2023

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

@nildude
Copy link
Author

nildude commented Dec 7, 2023

It seems like the "Firmata.attach( STRING_DATA, stringDataCallback);" function is not receiving the STRING_DATA object? Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant