// Remote I/O resources available from the MUNTS-0009 USB Grove Adapter
// Copyright (C)2023, Philip Munts dba Munts Technologies.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
namespace IO.Objects.RemoteIO.Platforms
{
///
/// I/O resources (channel numbers) available on from a
/// MUNTS-0009 USB Grove Adapter.
///
public static class MUNTS_0009
{
///
/// Analog input channel number for Grove Connector J3 pin 1.
///
///
/// Conflicts with GPIO1.
///
public const int AIN0 = 0;
///
/// Analog input channel number for Grove Connector J4 pin 1.
///
///
/// Conflicts with GPIO3 and SPI0.
///
public const int AIN1 = 1;
///
/// Analog input channel number for Grove Connector J4 pin 2.
///
///
/// Conflicts with GPIO4 and SPI0.
///
public const int AIN2 = 2;
///
/// Analog input channel number for Grove Connector J6 pin 1.
///
///
/// Conflicts with GPIO7 and I2C0 and SPI0.
///
public const int AIN3 = 3;
///
/// Analog input channel number for Grove Connector J6 pin 2.
///
///
/// Conflicts with GPIO8 and I2C0 and SPI0.
///
public const int AIN4 = 4;
///
/// GPIO channel number for the on-board LED.
///
///
/// Cannot be configured as an input.
///
public const int LED = 0;
///
/// GPIO channel number for Grove Connector J3 pin 1.
///
///
/// Conflicts with AIN0.
///
public const int GPIO1 = 1;
///
/// GPIO channel number for Grove Connector J3 pin 2.
///
///
/// Cannot be configured as an output.
///
public const int GPIO2 = 2;
///
/// GPIO channel number for Grove Connector J4 pin 1.
///
///
/// Conflicts with AIN1 and SPI0.
///
public const int GPIO3 = 3;
///
/// GPIO channel number for Grove Connector J4 pin 2.
///
///
/// Conflicts with AIN02 and SPI0.
///
public const int GPIO4 = 4;
///
/// GPIO channel number for Grove Connector J5 pin 1.
///
public const int GPIO5 = 5;
///
/// GPIO channel number for Grove Connector J5 pin 2.
///
public const int GPIO6 = 6;
///
/// GPIO channel number for Grove Connector J6 pin 1.
///
///
/// Conflicts with AIN3 and I2C0 and SPI0.
///
public const int GPIO7 = 7;
///
/// GPIO channel number for Grove Connector J6 pin 2.
///
///
/// Conflicts with AIN4 and I2C0 and SPI0.
///
public const int GPIO8 = 8;
///
/// I2C bus channel number for Grove Connector J6.
///
public const int I2C0 = 0;
///
/// SPI slave device channel number for Grove Connectors J4
/// and J6.
///
public const int SPI0 = 0;
}
}