未验证 提交 177de505 编写于 作者: J Jose Perez Rodriguez 提交者: GitHub

Adding headers and namespace (#15)

* Adding Licensing headers to our .cs files

* Moving files to the System.Device.Gpio namespace
上级 7ded2794
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Devices.Gpio;
using System.Threading;
......
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Devices.Gpio;
using System.Threading;
......
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
......
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Devices.Spi;
using Iot.Device;
......
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Device.Gpio;
using System.Devices.Gpio;
using System.Threading;
namespace pwm_led
......
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Devices.Gpio;
using System.Devices.Spi;
using System.Threading;
......
......@@ -6,7 +6,7 @@ using System;
using System.Collections.Generic;
using System.Text;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
/// <summary>
/// GPIO - Basic Scenarios
......
......@@ -7,7 +7,7 @@ using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
class GPIOSamples_Basic
{
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public class GpioException : Exception
{
......
......@@ -7,7 +7,7 @@ using System.Device.Gpio;
using System.Linq;
using System.Runtime.InteropServices;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public class GpioController : IDisposable
{
......
......@@ -4,7 +4,7 @@
using System.Device.Gpio;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public abstract class GpioDriver : IDisposable
{
......
......@@ -4,7 +4,7 @@
using System.Runtime.CompilerServices;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public static class GpioExtensions
{
......
using System;
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.Devices.Gpio;
using System.Text;
namespace System.Device.Gpio
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public class GpioPin : IDisposable
{
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Devices.Gpio;
using System.Device.Gpio;
using System.Runtime.CompilerServices;
namespace System.Devices.I2c
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Devices.Gpio;
using System.Device.Gpio;
using System.Runtime.InteropServices;
namespace System.Devices.I2c
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
[Flags]
public enum PinEvent
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public enum PinMode
{
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public enum PinNumberingScheme
{
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public enum PinValue
{
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public class PinValueChangedEventArgs : EventArgs
{
......
......@@ -8,7 +8,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public unsafe class RaspberryPiDriver : GpioDriver
{
......
......@@ -2,7 +2,7 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Devices.Gpio;
using System.Device.Gpio;
using System.IO;
using System.Runtime.InteropServices;
......
......@@ -10,7 +10,7 @@ using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public class UnixDriver : GpioDriver
{
......
......@@ -5,7 +5,7 @@
using System.IO;
using System.Runtime.CompilerServices;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
internal static class Utils
{
......
......@@ -11,7 +11,7 @@ using System.Threading;
using GpioPinValueChangedHandler = global::Windows.Foundation.TypedEventHandler<global::Windows.Devices.Gpio.GpioPin, global::Windows.Devices.Gpio.GpioPinValueChangedEventArgs>;
using WinGpio = global::Windows.Devices.Gpio;
namespace System.Devices.Gpio
namespace System.Device.Gpio
{
public class Windows10Driver : GpioDriver
{
......
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Devices.Gpio;
using System.Devices.Spi;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册