0

Where does EnableAlternateFunction go?

I'd like to use serial over GPIO on my HD223. I know I need the following to execute somewhere:

c = CreateObject("roControlPort", "BrightSign")
c.EnableAlternateFunction(0, "serial1")
c.EnableAlternateFunction(6, "serial1")

Where do I put this? Does it go in the autorun.brs? If so, where? I tried it at the end of the Main function with no luck.

I DID have luck telneting in, hitting the service button, pasting in that code, then hitting 'c' to continue execution. After I did that it reacted to serial input as expected (I put events in BrightAuthor to respond to "foo" and "bar" over serial, I'm sending them via an Arduino).

0 comments

Please sign in to leave a comment.