Unosquare
    Show / Hide Table of Contents

    Class Pi

    Our main character. Provides access to the Raspberry Pi's GPIO, system and board information and Camera.

    Inheritance
    Object
    Pi
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unosquare.RaspberryIO
    Syntax
    public static class Pi

    Properties

    Audio

    Provides access to Raspberry Pi ALSA sound card driver.

    Declaration
    public static AudioSettings Audio { get; }
    Property Value
    Type Description
    AudioSettings

    Bluetooth

    Provides access to Raspberry Pi Bluetooth driver.

    Declaration
    public static Bluetooth Bluetooth { get; }
    Property Value
    Type Description
    Bluetooth

    Camera

    Provides access to the official Raspberry Pi Camera.

    Declaration
    public static CameraController Camera { get; }
    Property Value
    Type Description
    CameraController

    Gpio

    Provides access to the Raspberry Pi's GPIO as a collection of GPIO Pins.

    Declaration
    public static IGpioController Gpio { get; }
    Property Value
    Type Description
    IGpioController

    I2C

    Provides access to the functionality of the i2c bus.

    Declaration
    public static II2CBus I2C { get; }
    Property Value
    Type Description
    II2CBus

    Info

    Provides information on this Raspberry Pi's CPU and form factor.

    Declaration
    public static SystemInfo Info { get; }
    Property Value
    Type Description
    SystemInfo

    PiDisplay

    Provides access to the official Raspberry Pi 7-inch DSI Display.

    Declaration
    public static DsiDisplay PiDisplay { get; }
    Property Value
    Type Description
    DsiDisplay

    Spi

    Provides access to the 2-channel SPI bus.

    Declaration
    public static ISpiBus Spi { get; }
    Property Value
    Type Description
    ISpiBus

    Threading

    Provides access to threading functionality.

    Declaration
    public static IThreading Threading { get; }
    Property Value
    Type Description
    IThreading

    Timing

    Provides access to timing functionality.

    Declaration
    public static ITiming Timing { get; }
    Property Value
    Type Description
    ITiming

    Methods

    Init<T>()

    Initializes an Abstractions implementation.

    Declaration
    public static void Init<T>()
        where T : IBootstrap
    Type Parameters
    Name Description
    T

    An implementation of .

    Restart()

    Restarts the Pi. Must be running as SU.

    Declaration
    public static ProcessResult Restart()
    Returns
    Type Description
    ProcessResult

    The process result.

    RestartAsync()

    Restarts the Pi. Must be running as SU.

    Declaration
    public static Task<ProcessResult> RestartAsync()
    Returns
    Type Description
    Task<ProcessResult>

    The process result.

    Shutdown()

    Halts the Pi. Must be running as SU.

    Declaration
    public static ProcessResult Shutdown()
    Returns
    Type Description
    ProcessResult

    The process result.

    ShutdownAsync()

    Halts the Pi. Must be running as SU.

    Declaration
    public static Task<ProcessResult> ShutdownAsync()
    Returns
    Type Description
    Task<ProcessResult>

    The process result.

    Comments

    Back to top Copyright © 2017-2019 Unosquare