Hi!
Can't find any information about using gpio with html.
So, I have html page with 3 buttons - "left", "right", "choose"
How should the line look like if I want to set gpio_0 to "left", gpio_1 to "choose", gpio_2 to "right"?
Hi!
Can't find any information about using gpio with html.
So, I have html page with 3 buttons - "left", "right", "choose"
How should the line look like if I want to set gpio_0 to "left", gpio_1 to "choose", gpio_2 to "right"?
Is the HTML page trying to communicate with the BrightSign?
Is the HTML located ON the BrightSign?
You would likely be better off using UDP commands versus hard wired GPIO input.
We need three mechanical buttons to control html page
You mean use three gpio buttons and set udp for them?
Aaah, I understand.
What you may want to do is setup a "listener" that listens for the GPIO inputs. Then, it can send a message to the HTML5 zone. In the HTML5 zone, you'll have to setup some javascript listeners.
Hopefully @BrightScripters will be able to chime in here as well.
This is an older document, but may give some guidance:
https://usermanual.wiki/Brightsign/JavascriptObjectsForBrightscript50.2021996192.pdf
Also the current documentation here:
https://brightsign.atlassian.net/wiki/spaces/DOC/pages/370672284/HTML+Development
Specifically the section titled
https://brightsign.atlassian.net/wiki/spaces/DOC/pages/370672351/BrightScript-JavaScript+Objects
https://brightsign.atlassian.net/wiki/spaces/DOC/pages/370672359/BSControlPort
Cheers,
Monica
Thnx!