You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2020. It is now read-only.
It would be nice to be able to use constants defined in an object in calvinsys from an Calvin script.
Example:
calvinsys/io/gpio_handler defines the constants PULLUP and PULLDOWN for enabling internal pull up/down resistors, these are then accessible from an Calvin script:
What about @io.gpio_handler.PULLUP using @ to signify an "address" to a value? Could be used as is, or in via a define PULLUP = @io.gpio_handler.PULLUP.
It would be nice to be able to use constants defined in an object in calvinsys from an Calvin script.
Example:
calvinsys/io/gpio_handler defines the constants PULLUP and PULLDOWN for enabling internal pull up/down resistors, these are then accessible from an Calvin script:
gpio : io.GPIOReader(pull=calvinsys.io.gpio_handler.PULLUP)
The text was updated successfully, but these errors were encountered: