Skip to content
Snippets Groups Projects
Select Git revision
  • 71be1ddeb128e6068d2f1df605ec9c8c10f67091
  • master default protected
  • schneider/ir
  • rahix/user-space-ctx
  • schneider/iaq-python
  • schneider/ble-mini-demo
  • schneider/ble-ecg-stream-visu
  • schneider/mp-exception-print
  • schneider/sleep-display
  • schneider/deepsleep4
  • schneider/deepsleep2
  • schneider/deepsleep
  • schneider/ble-central
  • rahix/bluetooth-app-favorite
  • schneider/v1.17-changelog
  • schneider/ancs
  • schneider/png
  • schneider/freertos-list-debug
  • schneider/212-reset-hardware-when-entering-repl
  • schneider/bonding-fail-if-full
  • schneider/ble-fixes-2020-3
  • v1.18
  • v1.17
  • v1.16
  • v1.15
  • v1.14
  • v1.13
  • v1.12
  • v1.11
  • v1.10
  • v1.9
  • v1.8
  • v1.7
  • v1.6
  • v1.5
  • v1.4
  • v1.3
  • v1.2
  • v1.1
  • v1.0
  • release-1
41 results

group__gpio__registers.html

Blame
  • _user.pyi 1.76 KiB
    from typing import Optional, TypeVar, Any, Type, List, overload
    import bl00mbox
    
    class Signal:
        name: str
        description: str
        unit: str
        hints: str
        connections: List["Signal | ChannelMixer"]
    
        # mypy doesn't know how to handle asymmetric setters
        # https://github.com/python/mypy/issues/3004
        value: Any
        # value: None | int | float | "Signal" | "ChannelMixer"
    
        def __init__(self, plugin: "Plugin", signal_num: int): ...
    
        # SignalInputTrigger functions
        def start(self, velocity: int = 32767) -> None: ...
        def stop(self) -> None: ...
    
        # SignalInputPitch shorthands
        freq: int
        tone: Any
        # tone: int | float | str
    
    class SignalList:
        def __setattr__(self, name: str, value: Signal | int | "ChannelMixer") -> None: ...
        def __getattr__(self, name: str) -> Signal: ...
    
    class Plugin:
        signals: SignalList
    
        def __init__(
            self,
            channel: "Channel",
            plugin_id: int,
            init_var: Optional[int] = 0,
            bud_num: Optional[int] = None,
        ): ...
    
    T = TypeVar("T")
    P = TypeVar("P", bound=bl00mbox.patches._Patch)
    
    class Channel:
        background_mute_override: bool
        mixer: "ChannelMixer"
        foreground: bool
        free: bool
    
        def __init__(self, name: str): ...
        def clear(self) -> None: ...
        def _new_plugin(
            self,
            thing: bl00mbox._plugins._Plugin | int,
            init_var: Optional[int | float] = None,
        ) -> Plugin: ...
        @overload
        def new(self, thing: Type[P], *args: Any, **kwargs: Any) -> P: ...
        @overload
        def new(
            self,
            thing: bl00mbox._plugins._Plugin | int,
            init_var: Optional[int | float] = None,
        ) -> Plugin: ...
    
    class ChannelMixer:
        _channel: Channel
        connections: List[Signal]
    
        def _unplug_all(self) -> None: ...