I am working on a project that uses 2 screens and one GPU per screen. My code selects each component by its address. But when I try to bind a gpu to a screen I get the error: attempt to call field 'bind' (a nil value).
local component =require("component")local term =require("term")local gpu = component.get("3085")local screen = component.get("40c6")
gpu.bind(screen)
I have verified that the addresses are correct and I have tried to assign the components to their full addresses. I'm sure my mistake is pretty simple. Any help would be greatly appreciated.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
I am working on a project that uses 2 screens and one GPU per screen. My code selects each component by its address. But when I try to bind a gpu to a screen I get the error: attempt to call field 'bind' (a nil value).
I have verified that the addresses are correct and I have tried to assign the components to their full addresses. I'm sure my mistake is pretty simple. Any help would be greatly appreciated.
Thanks in advance.
Link to post
Share on other sites