Skip to content
This repository was archived by the owner on Aug 13, 2020. It is now read-only.
This repository was archived by the owner on Aug 13, 2020. It is now read-only.

Expose constants defined in calvinsys to Calvin scripts #12

@fswensson

Description

@fswensson

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)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions