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

relay integer references #60

Open
cryptz2k opened this issue Mar 5, 2024 · 1 comment
Open

relay integer references #60

cryptz2k opened this issue Mar 5, 2024 · 1 comment

Comments

@cryptz2k
Copy link

cryptz2k commented Mar 5, 2024

are relays accessible by integer value or by name/word only.

for example:

is:
automationhat.relay[i + 1].on() supported in a for loop?

or must you spell out the name such as

automationhat.relay.one.toggle()

@Gadgetoid
Copy link
Member

Yes, there's an explicit case in the deep magic that makes this whacky code work. It should handle addressing relays as a collection.

An example of this might be a good idea in retrospect!

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

2 participants