Defining three wire devices in text

You’d probably need to upload your code so others can figure out the problem