Skip to content

Add Sleep Configuration Object to Builder #31

@brentru

Description

@brentru

This pull request attempts to match the Enter message within adafruit/Wippersnapper_Protobuf#159 by introducing a sleepConfig object into the JSON.

Deep sleep with a pin wakeup:

    "sleepConfig": [
        {
            "lock": true,
            "mode": "deep",
            "pinConfig": {
                "name": "D3",
                "level": true,
                "pull": false
            },
            "runDuration": 60
        }
   ]

Deep sleep with a timer:

    "sleepConfig": [
        {
            "lock": true,
            "mode": "deep",
            "timerConfig": {
                "duration": 300
            },
            "runDuration": 60
        }
    ]

Light sleep with a pin wakeup:

    "sleepConfig": [
        {
            "lock": true,
            "mode": "light",
            "pinConfig": {
                "name": "D3",
                "level": true,
                "pull": false
            },
            "runDuration": 60
        }
   ]

Light sleep with a timer:

    "sleepConfig": [
        {
            "lock": true,
            "mode": "light",
            "timerConfig": {
                "duration": 300
            },
            "runDuration": 60
        }
    ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions