diff options
Diffstat (limited to 'lib/lufa/Projects/LEDNotifier/LEDMixerApp')
10 files changed, 712 insertions, 0 deletions
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.Designer.cs b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.Designer.cs new file mode 100644 index 000000000..595083a4a --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.Designer.cs | |||
| @@ -0,0 +1,149 @@ | |||
| 1 | namespace LEDMixer | ||
| 2 | { | ||
| 3 | partial class LEDMixer | ||
| 4 | { | ||
| 5 | /// <summary> | ||
| 6 | /// Required designer variable. | ||
| 7 | /// </summary> | ||
| 8 | private System.ComponentModel.IContainer components = null; | ||
| 9 | |||
| 10 | /// <summary> | ||
| 11 | /// Clean up any resources being used. | ||
| 12 | /// </summary> | ||
| 13 | /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param> | ||
| 14 | protected override void Dispose(bool disposing) | ||
| 15 | { | ||
| 16 | if (disposing && (components != null)) | ||
| 17 | { | ||
| 18 | components.Dispose(); | ||
| 19 | } | ||
| 20 | base.Dispose(disposing); | ||
| 21 | } | ||
| 22 | |||
| 23 | #region Windows Form Designer generated code | ||
| 24 | |||
| 25 | /// <summary> | ||
| 26 | /// Required method for Designer support - do not modify | ||
| 27 | /// the contents of this method with the code editor. | ||
| 28 | /// </summary> | ||
| 29 | private void InitializeComponent() | ||
| 30 | { | ||
| 31 | this.components = new System.ComponentModel.Container(); | ||
| 32 | this.tbRed = new System.Windows.Forms.TrackBar(); | ||
| 33 | this.tbGreen = new System.Windows.Forms.TrackBar(); | ||
| 34 | this.tbBlue = new System.Windows.Forms.TrackBar(); | ||
| 35 | this.serSerialPort = new System.IO.Ports.SerialPort(this.components); | ||
| 36 | this.cbPort = new System.Windows.Forms.ComboBox(); | ||
| 37 | this.lblRed = new System.Windows.Forms.Label(); | ||
| 38 | this.lblBlue = new System.Windows.Forms.Label(); | ||
| 39 | this.lblGreen = new System.Windows.Forms.Label(); | ||
| 40 | ((System.ComponentModel.ISupportInitialize)(this.tbRed)).BeginInit(); | ||
| 41 | ((System.ComponentModel.ISupportInitialize)(this.tbGreen)).BeginInit(); | ||
| 42 | ((System.ComponentModel.ISupportInitialize)(this.tbBlue)).BeginInit(); | ||
| 43 | this.SuspendLayout(); | ||
| 44 | // | ||
| 45 | // tbRed | ||
| 46 | // | ||
| 47 | this.tbRed.Location = new System.Drawing.Point(54, 64); | ||
| 48 | this.tbRed.Maximum = 512; | ||
| 49 | this.tbRed.Name = "tbRed"; | ||
| 50 | this.tbRed.Size = new System.Drawing.Size(230, 45); | ||
| 51 | this.tbRed.TabIndex = 0; | ||
| 52 | this.tbRed.Scroll += new System.EventHandler(this.tbRed_Scroll); | ||
| 53 | // | ||
| 54 | // tbGreen | ||
| 55 | // | ||
| 56 | this.tbGreen.Location = new System.Drawing.Point(54, 115); | ||
| 57 | this.tbGreen.Maximum = 512; | ||
| 58 | this.tbGreen.Name = "tbGreen"; | ||
| 59 | this.tbGreen.Size = new System.Drawing.Size(230, 45); | ||
| 60 | this.tbGreen.TabIndex = 1; | ||
| 61 | this.tbGreen.Scroll += new System.EventHandler(this.tbGreen_Scroll); | ||
| 62 | // | ||
| 63 | // tbBlue | ||
| 64 | // | ||
| 65 | this.tbBlue.Location = new System.Drawing.Point(54, 163); | ||
| 66 | this.tbBlue.Maximum = 512; | ||
| 67 | this.tbBlue.Name = "tbBlue"; | ||
| 68 | this.tbBlue.Size = new System.Drawing.Size(230, 45); | ||
| 69 | this.tbBlue.TabIndex = 2; | ||
| 70 | this.tbBlue.Scroll += new System.EventHandler(this.tbBlue_Scroll); | ||
| 71 | // | ||
| 72 | // cbPort | ||
| 73 | // | ||
| 74 | this.cbPort.FormattingEnabled = true; | ||
| 75 | this.cbPort.Location = new System.Drawing.Point(97, 12); | ||
| 76 | this.cbPort.Name = "cbPort"; | ||
| 77 | this.cbPort.Size = new System.Drawing.Size(99, 21); | ||
| 78 | this.cbPort.TabIndex = 3; | ||
| 79 | this.cbPort.SelectedIndexChanged += new System.EventHandler(this.cbPort_SelectedIndexChanged); | ||
| 80 | // | ||
| 81 | // lblRed | ||
| 82 | // | ||
| 83 | this.lblRed.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | ||
| 84 | this.lblRed.Location = new System.Drawing.Point(3, 64); | ||
| 85 | this.lblRed.Name = "lblRed"; | ||
| 86 | this.lblRed.Size = new System.Drawing.Size(48, 29); | ||
| 87 | this.lblRed.TabIndex = 4; | ||
| 88 | this.lblRed.Text = "Red"; | ||
| 89 | this.lblRed.TextAlign = System.Drawing.ContentAlignment.MiddleRight; | ||
| 90 | // | ||
| 91 | // lblBlue | ||
| 92 | // | ||
| 93 | this.lblBlue.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | ||
| 94 | this.lblBlue.Location = new System.Drawing.Point(3, 115); | ||
| 95 | this.lblBlue.Name = "lblGreen"; | ||
| 96 | this.lblBlue.Size = new System.Drawing.Size(50, 27); | ||
| 97 | this.lblBlue.TabIndex = 5; | ||
| 98 | this.lblBlue.Text = "Green"; | ||
| 99 | this.lblBlue.TextAlign = System.Drawing.ContentAlignment.MiddleRight; | ||
| 100 | // | ||
| 101 | // lblGreen | ||
| 102 | // | ||
| 103 | this.lblGreen.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); | ||
| 104 | this.lblGreen.Location = new System.Drawing.Point(3, 163); | ||
| 105 | this.lblGreen.Name = "lblBlue"; | ||
| 106 | this.lblGreen.Size = new System.Drawing.Size(50, 25); | ||
| 107 | this.lblGreen.TabIndex = 6; | ||
| 108 | this.lblGreen.Text = "Blue"; | ||
| 109 | this.lblGreen.TextAlign = System.Drawing.ContentAlignment.MiddleRight; | ||
| 110 | // | ||
| 111 | // LEDMixer | ||
| 112 | // | ||
| 113 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); | ||
| 114 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; | ||
| 115 | this.ClientSize = new System.Drawing.Size(284, 207); | ||
| 116 | this.Controls.Add(this.lblGreen); | ||
| 117 | this.Controls.Add(this.lblBlue); | ||
| 118 | this.Controls.Add(this.lblRed); | ||
| 119 | this.Controls.Add(this.cbPort); | ||
| 120 | this.Controls.Add(this.tbBlue); | ||
| 121 | this.Controls.Add(this.tbGreen); | ||
| 122 | this.Controls.Add(this.tbRed); | ||
| 123 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; | ||
| 124 | this.MaximizeBox = false; | ||
| 125 | this.MinimizeBox = false; | ||
| 126 | this.Name = "LEDMixer"; | ||
| 127 | this.Text = "LED Mixer"; | ||
| 128 | this.Load += new System.EventHandler(this.LEDMixer_Load); | ||
| 129 | ((System.ComponentModel.ISupportInitialize)(this.tbRed)).EndInit(); | ||
| 130 | ((System.ComponentModel.ISupportInitialize)(this.tbGreen)).EndInit(); | ||
| 131 | ((System.ComponentModel.ISupportInitialize)(this.tbBlue)).EndInit(); | ||
| 132 | this.ResumeLayout(false); | ||
| 133 | this.PerformLayout(); | ||
| 134 | |||
| 135 | } | ||
| 136 | |||
| 137 | #endregion | ||
| 138 | |||
| 139 | private System.Windows.Forms.TrackBar tbRed; | ||
| 140 | private System.Windows.Forms.TrackBar tbGreen; | ||
| 141 | private System.Windows.Forms.TrackBar tbBlue; | ||
| 142 | private System.IO.Ports.SerialPort serSerialPort; | ||
| 143 | private System.Windows.Forms.ComboBox cbPort; | ||
| 144 | private System.Windows.Forms.Label lblRed; | ||
| 145 | private System.Windows.Forms.Label lblBlue; | ||
| 146 | private System.Windows.Forms.Label lblGreen; | ||
| 147 | } | ||
| 148 | } | ||
| 149 | |||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.cs b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.cs new file mode 100644 index 000000000..dfaffed30 --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.cs | |||
| @@ -0,0 +1,75 @@ | |||
| 1 | using System; | ||
| 2 | using System.Collections.Generic; | ||
| 3 | using System.ComponentModel; | ||
| 4 | using System.Data; | ||
| 5 | using System.Drawing; | ||
| 6 | using System.Linq; | ||
| 7 | using System.Text; | ||
| 8 | using System.Windows.Forms; | ||
| 9 | |||
| 10 | namespace LEDMixer | ||
| 11 | { | ||
| 12 | public partial class LEDMixer : Form | ||
| 13 | { | ||
| 14 | private const int LIGHT_MAX = 0x1F; | ||
| 15 | |||
| 16 | public LEDMixer() | ||
| 17 | { | ||
| 18 | InitializeComponent(); | ||
| 19 | } | ||
| 20 | |||
| 21 | private void LEDMixer_Load(object sender, EventArgs e) | ||
| 22 | { | ||
| 23 | String[] PortNames = System.IO.Ports.SerialPort.GetPortNames(); | ||
| 24 | Array.Sort<String>(PortNames, delegate(string strA, string strB) { return int.Parse(strA.Substring(3)).CompareTo(int.Parse(strB.Substring(3))); }); | ||
| 25 | cbPort.Items.Clear(); | ||
| 26 | cbPort.Items.AddRange(PortNames); | ||
| 27 | |||
| 28 | cbPort.SelectedIndex = 0; | ||
| 29 | |||
| 30 | tbRed.Maximum = LIGHT_MAX; | ||
| 31 | tbGreen.Maximum = LIGHT_MAX; | ||
| 32 | tbBlue.Maximum = LIGHT_MAX; | ||
| 33 | } | ||
| 34 | |||
| 35 | private void tbRed_Scroll(object sender, EventArgs e) | ||
| 36 | { | ||
| 37 | NotifyLight(tbRed.Value, tbGreen.Value, tbBlue.Value); | ||
| 38 | } | ||
| 39 | |||
| 40 | private void tbGreen_Scroll(object sender, EventArgs e) | ||
| 41 | { | ||
| 42 | NotifyLight(tbRed.Value, tbGreen.Value, tbBlue.Value); | ||
| 43 | } | ||
| 44 | |||
| 45 | private void tbBlue_Scroll(object sender, EventArgs e) | ||
| 46 | { | ||
| 47 | NotifyLight(tbRed.Value, tbGreen.Value, tbBlue.Value); | ||
| 48 | } | ||
| 49 | |||
| 50 | private void NotifyLight(int Red, int Green, int Blue) | ||
| 51 | { | ||
| 52 | byte[] buffer = new byte[3]; | ||
| 53 | buffer[0] = (byte)(0x80 | (Red & LIGHT_MAX)); | ||
| 54 | buffer[1] = (byte)(0x40 | (Green & LIGHT_MAX)); | ||
| 55 | buffer[2] = (byte)(0x20 | (Blue & LIGHT_MAX)); | ||
| 56 | |||
| 57 | try | ||
| 58 | { | ||
| 59 | serSerialPort.PortName = cbPort.Text; | ||
| 60 | serSerialPort.Open(); | ||
| 61 | serSerialPort.Write(buffer, 0, buffer.Length); | ||
| 62 | serSerialPort.Close(); | ||
| 63 | } | ||
| 64 | catch (Exception e) | ||
| 65 | { | ||
| 66 | |||
| 67 | } | ||
| 68 | } | ||
| 69 | |||
| 70 | private void cbPort_SelectedIndexChanged(object sender, EventArgs e) | ||
| 71 | { | ||
| 72 | NotifyLight(tbRed.Value, tbGreen.Value, tbBlue.Value); | ||
| 73 | } | ||
| 74 | } | ||
| 75 | } | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.csproj b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.csproj new file mode 100644 index 000000000..6287ddcff --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.csproj | |||
| @@ -0,0 +1,95 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
| 3 | <PropertyGroup> | ||
| 4 | <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
| 5 | <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
| 6 | <ProductVersion>9.0.21022</ProductVersion> | ||
| 7 | <SchemaVersion>2.0</SchemaVersion> | ||
| 8 | <ProjectGuid>{A7814DA7-FA30-4A3D-878F-2E1975F9B27D}</ProjectGuid> | ||
| 9 | <OutputType>WinExe</OutputType> | ||
| 10 | <AppDesignerFolder>Properties</AppDesignerFolder> | ||
| 11 | <RootNamespace>LEDMixer</RootNamespace> | ||
| 12 | <AssemblyName>LEDMixer</AssemblyName> | ||
| 13 | <TargetFrameworkVersion>v3.5</TargetFrameworkVersion> | ||
| 14 | <FileAlignment>512</FileAlignment> | ||
| 15 | <FileUpgradeFlags> | ||
| 16 | </FileUpgradeFlags> | ||
| 17 | <OldToolsVersion>3.5</OldToolsVersion> | ||
| 18 | <UpgradeBackupLocation /> | ||
| 19 | </PropertyGroup> | ||
| 20 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
| 21 | <DebugSymbols>true</DebugSymbols> | ||
| 22 | <DebugType>full</DebugType> | ||
| 23 | <Optimize>false</Optimize> | ||
| 24 | <OutputPath>bin\Debug\</OutputPath> | ||
| 25 | <DefineConstants>DEBUG;TRACE</DefineConstants> | ||
| 26 | <ErrorReport>prompt</ErrorReport> | ||
| 27 | <WarningLevel>4</WarningLevel> | ||
| 28 | </PropertyGroup> | ||
| 29 | <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
| 30 | <DebugType>pdbonly</DebugType> | ||
| 31 | <Optimize>true</Optimize> | ||
| 32 | <OutputPath>bin\Release\</OutputPath> | ||
| 33 | <DefineConstants>TRACE</DefineConstants> | ||
| 34 | <ErrorReport>prompt</ErrorReport> | ||
| 35 | <WarningLevel>4</WarningLevel> | ||
| 36 | </PropertyGroup> | ||
| 37 | <ItemGroup> | ||
| 38 | <Reference Include="System" /> | ||
| 39 | <Reference Include="System.Core"> | ||
| 40 | <RequiredTargetFramework>3.5</RequiredTargetFramework> | ||
| 41 | </Reference> | ||
| 42 | <Reference Include="System.Xml.Linq"> | ||
| 43 | <RequiredTargetFramework>3.5</RequiredTargetFramework> | ||
| 44 | </Reference> | ||
| 45 | <Reference Include="System.Data.DataSetExtensions"> | ||
| 46 | <RequiredTargetFramework>3.5</RequiredTargetFramework> | ||
| 47 | </Reference> | ||
| 48 | <Reference Include="System.Data" /> | ||
| 49 | <Reference Include="System.Deployment" /> | ||
| 50 | <Reference Include="System.Drawing" /> | ||
| 51 | <Reference Include="System.Windows.Forms" /> | ||
| 52 | <Reference Include="System.Xml" /> | ||
| 53 | </ItemGroup> | ||
| 54 | <ItemGroup> | ||
| 55 | <Compile Include="LEDMixer.cs"> | ||
| 56 | <SubType>Form</SubType> | ||
| 57 | </Compile> | ||
| 58 | <Compile Include="LEDMixer.Designer.cs"> | ||
| 59 | <DependentUpon>LEDMixer.cs</DependentUpon> | ||
| 60 | </Compile> | ||
| 61 | <Compile Include="Program.cs" /> | ||
| 62 | <Compile Include="Properties\AssemblyInfo.cs" /> | ||
| 63 | <EmbeddedResource Include="LEDMixer.resx"> | ||
| 64 | <DependentUpon>LEDMixer.cs</DependentUpon> | ||
| 65 | <SubType>Designer</SubType> | ||
| 66 | </EmbeddedResource> | ||
| 67 | <EmbeddedResource Include="Properties\Resources.resx"> | ||
| 68 | <Generator>ResXFileCodeGenerator</Generator> | ||
| 69 | <LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
| 70 | <SubType>Designer</SubType> | ||
| 71 | </EmbeddedResource> | ||
| 72 | <Compile Include="Properties\Resources.Designer.cs"> | ||
| 73 | <AutoGen>True</AutoGen> | ||
| 74 | <DependentUpon>Resources.resx</DependentUpon> | ||
| 75 | <DesignTime>True</DesignTime> | ||
| 76 | </Compile> | ||
| 77 | <None Include="Properties\Settings.settings"> | ||
| 78 | <Generator>SettingsSingleFileGenerator</Generator> | ||
| 79 | <LastGenOutput>Settings.Designer.cs</LastGenOutput> | ||
| 80 | </None> | ||
| 81 | <Compile Include="Properties\Settings.Designer.cs"> | ||
| 82 | <AutoGen>True</AutoGen> | ||
| 83 | <DependentUpon>Settings.settings</DependentUpon> | ||
| 84 | <DesignTimeSharedInput>True</DesignTimeSharedInput> | ||
| 85 | </Compile> | ||
| 86 | </ItemGroup> | ||
| 87 | <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
| 88 | <!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
| 89 | Other similar extension points exist, see Microsoft.Common.targets. | ||
| 90 | <Target Name="BeforeBuild"> | ||
| 91 | </Target> | ||
| 92 | <Target Name="AfterBuild"> | ||
| 93 | </Target> | ||
| 94 | --> | ||
| 95 | </Project> \ No newline at end of file | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.resx b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.resx new file mode 100644 index 000000000..0601840d7 --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/LEDMixer.resx | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <root> | ||
| 3 | <!-- | ||
| 4 | Microsoft ResX Schema | ||
| 5 | |||
| 6 | Version 2.0 | ||
| 7 | |||
| 8 | The primary goals of this format is to allow a simple XML format | ||
| 9 | that is mostly human readable. The generation and parsing of the | ||
| 10 | various data types are done through the TypeConverter classes | ||
| 11 | associated with the data types. | ||
| 12 | |||
| 13 | Example: | ||
| 14 | |||
| 15 | ... ado.net/XML headers & schema ... | ||
| 16 | <resheader name="resmimetype">text/microsoft-resx</resheader> | ||
| 17 | <resheader name="version">2.0</resheader> | ||
| 18 | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||
| 19 | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||
| 20 | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||
| 21 | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||
| 22 | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||
| 23 | <value>[base64 mime encoded serialized .NET Framework object]</value> | ||
| 24 | </data> | ||
| 25 | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
| 26 | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||
| 27 | <comment>This is a comment</comment> | ||
| 28 | </data> | ||
| 29 | |||
| 30 | There are any number of "resheader" rows that contain simple | ||
| 31 | name/value pairs. | ||
| 32 | |||
| 33 | Each data row contains a name, and value. The row also contains a | ||
| 34 | type or mimetype. Type corresponds to a .NET class that support | ||
| 35 | text/value conversion through the TypeConverter architecture. | ||
| 36 | Classes that don't support this are serialized and stored with the | ||
| 37 | mimetype set. | ||
| 38 | |||
| 39 | The mimetype is used for serialized objects, and tells the | ||
| 40 | ResXResourceReader how to depersist the object. This is currently not | ||
| 41 | extensible. For a given mimetype the value must be set accordingly: | ||
| 42 | |||
| 43 | Note - application/x-microsoft.net.object.binary.base64 is the format | ||
| 44 | that the ResXResourceWriter will generate, however the reader can | ||
| 45 | read any of the formats listed below. | ||
| 46 | |||
| 47 | mimetype: application/x-microsoft.net.object.binary.base64 | ||
| 48 | value : The object must be serialized with | ||
| 49 | : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter | ||
| 50 | : and then encoded with base64 encoding. | ||
| 51 | |||
| 52 | mimetype: application/x-microsoft.net.object.soap.base64 | ||
| 53 | value : The object must be serialized with | ||
| 54 | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||
| 55 | : and then encoded with base64 encoding. | ||
| 56 | |||
| 57 | mimetype: application/x-microsoft.net.object.bytearray.base64 | ||
| 58 | value : The object must be serialized into a byte array | ||
| 59 | : using a System.ComponentModel.TypeConverter | ||
| 60 | : and then encoded with base64 encoding. | ||
| 61 | --> | ||
| 62 | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
| 63 | <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> | ||
| 64 | <xsd:element name="root" msdata:IsDataSet="true"> | ||
| 65 | <xsd:complexType> | ||
| 66 | <xsd:choice maxOccurs="unbounded"> | ||
| 67 | <xsd:element name="metadata"> | ||
| 68 | <xsd:complexType> | ||
| 69 | <xsd:sequence> | ||
| 70 | <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
| 71 | </xsd:sequence> | ||
| 72 | <xsd:attribute name="name" use="required" type="xsd:string" /> | ||
| 73 | <xsd:attribute name="type" type="xsd:string" /> | ||
| 74 | <xsd:attribute name="mimetype" type="xsd:string" /> | ||
| 75 | <xsd:attribute ref="xml:space" /> | ||
| 76 | </xsd:complexType> | ||
| 77 | </xsd:element> | ||
| 78 | <xsd:element name="assembly"> | ||
| 79 | <xsd:complexType> | ||
| 80 | <xsd:attribute name="alias" type="xsd:string" /> | ||
| 81 | <xsd:attribute name="name" type="xsd:string" /> | ||
| 82 | </xsd:complexType> | ||
| 83 | </xsd:element> | ||
| 84 | <xsd:element name="data"> | ||
| 85 | <xsd:complexType> | ||
| 86 | <xsd:sequence> | ||
| 87 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 88 | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
| 89 | </xsd:sequence> | ||
| 90 | <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> | ||
| 91 | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
| 92 | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
| 93 | <xsd:attribute ref="xml:space" /> | ||
| 94 | </xsd:complexType> | ||
| 95 | </xsd:element> | ||
| 96 | <xsd:element name="resheader"> | ||
| 97 | <xsd:complexType> | ||
| 98 | <xsd:sequence> | ||
| 99 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 100 | </xsd:sequence> | ||
| 101 | <xsd:attribute name="name" type="xsd:string" use="required" /> | ||
| 102 | </xsd:complexType> | ||
| 103 | </xsd:element> | ||
| 104 | </xsd:choice> | ||
| 105 | </xsd:complexType> | ||
| 106 | </xsd:element> | ||
| 107 | </xsd:schema> | ||
| 108 | <resheader name="resmimetype"> | ||
| 109 | <value>text/microsoft-resx</value> | ||
| 110 | </resheader> | ||
| 111 | <resheader name="version"> | ||
| 112 | <value>2.0</value> | ||
| 113 | </resheader> | ||
| 114 | <resheader name="reader"> | ||
| 115 | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 116 | </resheader> | ||
| 117 | <resheader name="writer"> | ||
| 118 | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 119 | </resheader> | ||
| 120 | <metadata name="serSerialPort.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> | ||
| 121 | <value>17, 17</value> | ||
| 122 | </metadata> | ||
| 123 | </root> \ No newline at end of file | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Program.cs b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Program.cs new file mode 100644 index 000000000..8958f86d2 --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Program.cs | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | using System; | ||
| 2 | using System.Collections.Generic; | ||
| 3 | using System.Linq; | ||
| 4 | using System.Windows.Forms; | ||
| 5 | |||
| 6 | namespace LEDMixer | ||
| 7 | { | ||
| 8 | static class Program | ||
| 9 | { | ||
| 10 | /// <summary> | ||
| 11 | /// The main entry point for the application. | ||
| 12 | /// </summary> | ||
| 13 | [STAThread] | ||
| 14 | static void Main() | ||
| 15 | { | ||
| 16 | Application.EnableVisualStyles(); | ||
| 17 | Application.SetCompatibleTextRenderingDefault(false); | ||
| 18 | Application.Run(new LEDMixer()); | ||
| 19 | } | ||
| 20 | } | ||
| 21 | } | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/AssemblyInfo.cs b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/AssemblyInfo.cs new file mode 100644 index 000000000..c88194381 --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/AssemblyInfo.cs | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | using System.Reflection; | ||
| 2 | using System.Runtime.CompilerServices; | ||
| 3 | using System.Runtime.InteropServices; | ||
| 4 | |||
| 5 | // General Information about an assembly is controlled through the following | ||
| 6 | // set of attributes. Change these attribute values to modify the information | ||
| 7 | // associated with an assembly. | ||
| 8 | [assembly: AssemblyTitle("LEDMixer")] | ||
| 9 | [assembly: AssemblyDescription("")] | ||
| 10 | [assembly: AssemblyConfiguration("")] | ||
| 11 | [assembly: AssemblyCompany("Microsoft")] | ||
| 12 | [assembly: AssemblyProduct("LEDMixer")] | ||
| 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2009")] | ||
| 14 | [assembly: AssemblyTrademark("")] | ||
| 15 | [assembly: AssemblyCulture("")] | ||
| 16 | |||
| 17 | // Setting ComVisible to false makes the types in this assembly not visible | ||
| 18 | // to COM components. If you need to access a type in this assembly from | ||
| 19 | // COM, set the ComVisible attribute to true on that type. | ||
| 20 | [assembly: ComVisible(false)] | ||
| 21 | |||
| 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM | ||
| 23 | [assembly: Guid("335c1112-9aa6-42a0-9765-5cc6deb78c88")] | ||
| 24 | |||
| 25 | // Version information for an assembly consists of the following four values: | ||
| 26 | // | ||
| 27 | // Major Version | ||
| 28 | // Minor Version | ||
| 29 | // Build Number | ||
| 30 | // Revision | ||
| 31 | // | ||
| 32 | // You can specify all the values or you can default the Build and Revision Numbers | ||
| 33 | // by using the '*' as shown below: | ||
| 34 | // [assembly: AssemblyVersion("1.0.*")] | ||
| 35 | [assembly: AssemblyVersion("1.0.0.0")] | ||
| 36 | [assembly: AssemblyFileVersion("1.0.0.0")] | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Resources.Designer.cs b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Resources.Designer.cs new file mode 100644 index 000000000..53e3f2e0b --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Resources.Designer.cs | |||
| @@ -0,0 +1,63 @@ | |||
| 1 | //------------------------------------------------------------------------------ | ||
| 2 | // <auto-generated> | ||
| 3 | // This code was generated by a tool. | ||
| 4 | // Runtime Version:4.0.30319.239 | ||
| 5 | // | ||
| 6 | // Changes to this file may cause incorrect behavior and will be lost if | ||
| 7 | // the code is regenerated. | ||
| 8 | // </auto-generated> | ||
| 9 | //------------------------------------------------------------------------------ | ||
| 10 | |||
| 11 | namespace LEDMixer.Properties { | ||
| 12 | using System; | ||
| 13 | |||
| 14 | |||
| 15 | /// <summary> | ||
| 16 | /// A strongly-typed resource class, for looking up localized strings, etc. | ||
| 17 | /// </summary> | ||
| 18 | // This class was auto-generated by the StronglyTypedResourceBuilder | ||
| 19 | // class via a tool like ResGen or Visual Studio. | ||
| 20 | // To add or remove a member, edit your .ResX file then rerun ResGen | ||
| 21 | // with the /str option, or rebuild your VS project. | ||
| 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] | ||
| 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
| 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
| 25 | internal class Resources { | ||
| 26 | |||
| 27 | private static global::System.Resources.ResourceManager resourceMan; | ||
| 28 | |||
| 29 | private static global::System.Globalization.CultureInfo resourceCulture; | ||
| 30 | |||
| 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | ||
| 32 | internal Resources() { | ||
| 33 | } | ||
| 34 | |||
| 35 | /// <summary> | ||
| 36 | /// Returns the cached ResourceManager instance used by this class. | ||
| 37 | /// </summary> | ||
| 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
| 39 | internal static global::System.Resources.ResourceManager ResourceManager { | ||
| 40 | get { | ||
| 41 | if (object.ReferenceEquals(resourceMan, null)) { | ||
| 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("LEDMixer.Properties.Resources", typeof(Resources).Assembly); | ||
| 43 | resourceMan = temp; | ||
| 44 | } | ||
| 45 | return resourceMan; | ||
| 46 | } | ||
| 47 | } | ||
| 48 | |||
| 49 | /// <summary> | ||
| 50 | /// Overrides the current thread's CurrentUICulture property for all | ||
| 51 | /// resource lookups using this strongly typed resource class. | ||
| 52 | /// </summary> | ||
| 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
| 54 | internal static global::System.Globalization.CultureInfo Culture { | ||
| 55 | get { | ||
| 56 | return resourceCulture; | ||
| 57 | } | ||
| 58 | set { | ||
| 59 | resourceCulture = value; | ||
| 60 | } | ||
| 61 | } | ||
| 62 | } | ||
| 63 | } | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Resources.resx b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Resources.resx new file mode 100644 index 000000000..af7dbebba --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Resources.resx | |||
| @@ -0,0 +1,117 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <root> | ||
| 3 | <!-- | ||
| 4 | Microsoft ResX Schema | ||
| 5 | |||
| 6 | Version 2.0 | ||
| 7 | |||
| 8 | The primary goals of this format is to allow a simple XML format | ||
| 9 | that is mostly human readable. The generation and parsing of the | ||
| 10 | various data types are done through the TypeConverter classes | ||
| 11 | associated with the data types. | ||
| 12 | |||
| 13 | Example: | ||
| 14 | |||
| 15 | ... ado.net/XML headers & schema ... | ||
| 16 | <resheader name="resmimetype">text/microsoft-resx</resheader> | ||
| 17 | <resheader name="version">2.0</resheader> | ||
| 18 | <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> | ||
| 19 | <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> | ||
| 20 | <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> | ||
| 21 | <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> | ||
| 22 | <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> | ||
| 23 | <value>[base64 mime encoded serialized .NET Framework object]</value> | ||
| 24 | </data> | ||
| 25 | <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> | ||
| 26 | <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> | ||
| 27 | <comment>This is a comment</comment> | ||
| 28 | </data> | ||
| 29 | |||
| 30 | There are any number of "resheader" rows that contain simple | ||
| 31 | name/value pairs. | ||
| 32 | |||
| 33 | Each data row contains a name, and value. The row also contains a | ||
| 34 | type or mimetype. Type corresponds to a .NET class that support | ||
| 35 | text/value conversion through the TypeConverter architecture. | ||
| 36 | Classes that don't support this are serialized and stored with the | ||
| 37 | mimetype set. | ||
| 38 | |||
| 39 | The mimetype is used for serialized objects, and tells the | ||
| 40 | ResXResourceReader how to depersist the object. This is currently not | ||
| 41 | extensible. For a given mimetype the value must be set accordingly: | ||
| 42 | |||
| 43 | Note - application/x-microsoft.net.object.binary.base64 is the format | ||
| 44 | that the ResXResourceWriter will generate, however the reader can | ||
| 45 | read any of the formats listed below. | ||
| 46 | |||
| 47 | mimetype: application/x-microsoft.net.object.binary.base64 | ||
| 48 | value : The object must be serialized with | ||
| 49 | : System.Serialization.Formatters.Binary.BinaryFormatter | ||
| 50 | : and then encoded with base64 encoding. | ||
| 51 | |||
| 52 | mimetype: application/x-microsoft.net.object.soap.base64 | ||
| 53 | value : The object must be serialized with | ||
| 54 | : System.Runtime.Serialization.Formatters.Soap.SoapFormatter | ||
| 55 | : and then encoded with base64 encoding. | ||
| 56 | |||
| 57 | mimetype: application/x-microsoft.net.object.bytearray.base64 | ||
| 58 | value : The object must be serialized into a byte array | ||
| 59 | : using a System.ComponentModel.TypeConverter | ||
| 60 | : and then encoded with base64 encoding. | ||
| 61 | --> | ||
| 62 | <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> | ||
| 63 | <xsd:element name="root" msdata:IsDataSet="true"> | ||
| 64 | <xsd:complexType> | ||
| 65 | <xsd:choice maxOccurs="unbounded"> | ||
| 66 | <xsd:element name="metadata"> | ||
| 67 | <xsd:complexType> | ||
| 68 | <xsd:sequence> | ||
| 69 | <xsd:element name="value" type="xsd:string" minOccurs="0" /> | ||
| 70 | </xsd:sequence> | ||
| 71 | <xsd:attribute name="name" type="xsd:string" /> | ||
| 72 | <xsd:attribute name="type" type="xsd:string" /> | ||
| 73 | <xsd:attribute name="mimetype" type="xsd:string" /> | ||
| 74 | </xsd:complexType> | ||
| 75 | </xsd:element> | ||
| 76 | <xsd:element name="assembly"> | ||
| 77 | <xsd:complexType> | ||
| 78 | <xsd:attribute name="alias" type="xsd:string" /> | ||
| 79 | <xsd:attribute name="name" type="xsd:string" /> | ||
| 80 | </xsd:complexType> | ||
| 81 | </xsd:element> | ||
| 82 | <xsd:element name="data"> | ||
| 83 | <xsd:complexType> | ||
| 84 | <xsd:sequence> | ||
| 85 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 86 | <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> | ||
| 87 | </xsd:sequence> | ||
| 88 | <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" /> | ||
| 89 | <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> | ||
| 90 | <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> | ||
| 91 | </xsd:complexType> | ||
| 92 | </xsd:element> | ||
| 93 | <xsd:element name="resheader"> | ||
| 94 | <xsd:complexType> | ||
| 95 | <xsd:sequence> | ||
| 96 | <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> | ||
| 97 | </xsd:sequence> | ||
| 98 | <xsd:attribute name="name" type="xsd:string" use="required" /> | ||
| 99 | </xsd:complexType> | ||
| 100 | </xsd:element> | ||
| 101 | </xsd:choice> | ||
| 102 | </xsd:complexType> | ||
| 103 | </xsd:element> | ||
| 104 | </xsd:schema> | ||
| 105 | <resheader name="resmimetype"> | ||
| 106 | <value>text/microsoft-resx</value> | ||
| 107 | </resheader> | ||
| 108 | <resheader name="version"> | ||
| 109 | <value>2.0</value> | ||
| 110 | </resheader> | ||
| 111 | <resheader name="reader"> | ||
| 112 | <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 113 | </resheader> | ||
| 114 | <resheader name="writer"> | ||
| 115 | <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> | ||
| 116 | </resheader> | ||
| 117 | </root> \ No newline at end of file | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Settings.Designer.cs b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Settings.Designer.cs new file mode 100644 index 000000000..d79f28b80 --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Settings.Designer.cs | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | //------------------------------------------------------------------------------ | ||
| 2 | // <auto-generated> | ||
| 3 | // This code was generated by a tool. | ||
| 4 | // Runtime Version:4.0.30319.239 | ||
| 5 | // | ||
| 6 | // Changes to this file may cause incorrect behavior and will be lost if | ||
| 7 | // the code is regenerated. | ||
| 8 | // </auto-generated> | ||
| 9 | //------------------------------------------------------------------------------ | ||
| 10 | |||
| 11 | namespace LEDMixer.Properties { | ||
| 12 | |||
| 13 | |||
| 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
| 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] | ||
| 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { | ||
| 17 | |||
| 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); | ||
| 19 | |||
| 20 | public static Settings Default { | ||
| 21 | get { | ||
| 22 | return defaultInstance; | ||
| 23 | } | ||
| 24 | } | ||
| 25 | } | ||
| 26 | } | ||
diff --git a/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Settings.settings b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Settings.settings new file mode 100644 index 000000000..39645652a --- /dev/null +++ b/lib/lufa/Projects/LEDNotifier/LEDMixerApp/Properties/Settings.settings | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | <?xml version='1.0' encoding='utf-8'?> | ||
| 2 | <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> | ||
| 3 | <Profiles> | ||
| 4 | <Profile Name="(Default)" /> | ||
| 5 | </Profiles> | ||
| 6 | <Settings /> | ||
| 7 | </SettingsFile> | ||
