Permalink
Browse files

Initial firmware import

  • Loading branch information...
1 parent 52bd768 commit 0de852cd10e969f246cf6b15f469a8c5b3101279 @tangentaudio committed Mar 19, 2013
View
Oops, something went wrong.
View
@@ -1,4 +1,54 @@
-aziz
-====
+=============================================================================
+AZIZ LED Ring Light Firmware
+Copyright (C) 2013 Stephen Richardson (steve@tangentaudio.com)
-AZIZ LED Ring Light Firmware
+http://www.tangentaudio.com/
+=============================================================================
+
+This is the firmware code to control the AZIZ LED light ring. AZIZ is based
+around an Atmel ATTiny1634 microcontroller, connected to a Texas Instruments
+TLC59116 constant current LED driver. Sixty four (64) LEDs are arranged in
+a ring and driven by the driver chip in groups of four. User control is
+provided via three buttons, three colored LEDs, and two rotary encoder knobs.
+
+Several adjustments are allowed, included brightness, fading, and pattern
+selection. Forthcoming user documentation will describe modes of operation
+in more detail.
+
+Code builds in Atmel Studio V6.1 Beta.
+
+See http://www.tangentaudio.com/electronics/aziz/ for more information.
+
+=============================================================================
+
+This Source Code Form is subject to the terms of the Mozilla Public
+License, v. 2.0. If a copy of the MPL was not distributed with this
+file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+
+EXCEPT THE FOLLOWING CODE: TWI_master.c and TWI_master.h which are
+
+Copyright (c) 2012, Atmel Corporation All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+1. Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+
+3. The name of ATMEL may not be used to endorse or promote products derived
+from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY ATMEL "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 EXPRESSLY AND
+SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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.
View
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Atmel Studio Solution File, Format Version 11.00
+Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "AZIZ", "AZIZ\AZIZ.cproj", "{E3852DB9-C0B0-4587-A0F8-15F28ACC5FE8}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|AVR = Debug|AVR
+ Release|AVR = Release|AVR
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {E3852DB9-C0B0-4587-A0F8-15F28ACC5FE8}.Debug|AVR.ActiveCfg = Debug|AVR
+ {E3852DB9-C0B0-4587-A0F8-15F28ACC5FE8}.Debug|AVR.Build.0 = Debug|AVR
+ {E3852DB9-C0B0-4587-A0F8-15F28ACC5FE8}.Release|AVR.ActiveCfg = Release|AVR
+ {E3852DB9-C0B0-4587-A0F8-15F28ACC5FE8}.Release|AVR.Build.0 = Release|AVR
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
@@ -0,0 +1,17 @@
+/*
+ * AZIZ.c
+ *
+ * Created: 3/18/2013 10:30:48 PM
+ * Author: Steve
+ */
+
+
+#include <avr/io.h>
+
+int main(void)
+{
+ while(1)
+ {
+ //TODO:: Please write your application code
+ }
+}
@@ -0,0 +1,168 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectVersion>6.1</ProjectVersion>
+ <ToolchainName>com.Atmel.AVRGCC8.C</ToolchainName>
+ <ProjectGuid>{e3852db9-c0b0-4587-a0f8-15f28acc5fe8}</ProjectGuid>
+ <avrdevice>ATtiny1634</avrdevice>
+ <avrdeviceseries>none</avrdeviceseries>
+ <OutputType>Executable</OutputType>
+ <Language>C</Language>
+ <OutputFileName>$(MSBuildProjectName)</OutputFileName>
+ <OutputFileExtension>.elf</OutputFileExtension>
+ <OutputDirectory>$(MSBuildProjectDirectory)\$(Configuration)</OutputDirectory>
+ <AssemblyName>AZIZ</AssemblyName>
+ <Name>AZIZ</Name>
+ <RootNamespace>AZIZ</RootNamespace>
+ <ToolchainFlavour>Native</ToolchainFlavour>
+ <KeepTimersRunning>true</KeepTimersRunning>
+ <OverrideVtor>false</OverrideVtor>
+ <OverrideVtorValue />
+ <eraseonlaunchrule>0</eraseonlaunchrule>
+ <ProgFlashFromRam>true</ProgFlashFromRam>
+ <RamSnippetAddress>0x20000000</RamSnippetAddress>
+ <CacheFlash>true</CacheFlash>
+ <UncachedRange />
+ <BootSegment>0</BootSegment>
+ <AsfFrameworkConfig>
+ <framework-data xmlns="">
+ <options />
+ <configurations />
+ <files />
+ <documentation help="" />
+ <dependencies>
+ <content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.7.2" />
+ </dependencies>
+</framework-data>
+ </AsfFrameworkConfig>
+ <avrtoolinterface>debugWIRE</avrtoolinterface>
+ <avrtool>com.atmel.avrdbg.tool.avrdragon</avrtool>
+ <com_atmel_avrdbg_tool_avrdragon>
+ <ToolType xmlns="">com.atmel.avrdbg.tool.avrdragon</ToolType>
+ <ToolName xmlns="">AVR Dragon</ToolName>
+ <ToolNumber xmlns="">00A20003467D</ToolNumber>
+ <Channel xmlns="">
+ <host>127.0.0.1</host>
+ <port>53905</port>
+ <ssl>False</ssl>
+ </Channel>
+ <ToolOptions xmlns="">
+ <InterfaceName>debugWIRE</InterfaceName>
+ <InterfaceProperties>
+ <JtagDbgClock>200000</JtagDbgClock>
+ <JtagProgClock>1000000</JtagProgClock>
+ <IspClock>150000</IspClock>
+ <JtagInChain>false</JtagInChain>
+ <JtagEnableExtResetOnStartSession>false</JtagEnableExtResetOnStartSession>
+ <JtagDevicesBefore>0</JtagDevicesBefore>
+ <JtagDevicesAfter>0</JtagDevicesAfter>
+ <JtagInstrBitsBefore>0</JtagInstrBitsBefore>
+ <JtagInstrBitsAfter>0</JtagInstrBitsAfter>
+ </InterfaceProperties>
+ </ToolOptions>
+ </com_atmel_avrdbg_tool_avrdragon>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
+ <ToolchainSettings>
+ <AvrGcc>
+ <avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
+ <avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
+ <avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
+ <avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
+ <avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
+ <avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
+ <avrgcc.compiler.symbols.DefSymbols>
+ <ListValues>
+ <Value>NDEBUG</Value>
+ </ListValues>
+ </avrgcc.compiler.symbols.DefSymbols>
+ <avrgcc.compiler.optimization.level>Optimize for size (-Os)</avrgcc.compiler.optimization.level>
+ <avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
+ <avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
+ <avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
+ <avrgcc.linker.libraries.Libraries>
+ <ListValues>
+ <Value>libm</Value>
+ </ListValues>
+ </avrgcc.linker.libraries.Libraries>
+</AvrGcc>
+ </ToolchainSettings>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
+ <ToolchainSettings>
+ <AvrGcc>
+ <avrgcc.common.outputfiles.hex>True</avrgcc.common.outputfiles.hex>
+ <avrgcc.common.outputfiles.lss>True</avrgcc.common.outputfiles.lss>
+ <avrgcc.common.outputfiles.eep>True</avrgcc.common.outputfiles.eep>
+ <avrgcc.common.outputfiles.srec>True</avrgcc.common.outputfiles.srec>
+ <avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>True</avrgcc.compiler.general.ChangeDefaultCharTypeUnsigned>
+ <avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>True</avrgcc.compiler.general.ChangeDefaultBitFieldUnsigned>
+ <avrgcc.compiler.symbols.DefSymbols>
+ <ListValues>
+ <Value>DEBUG</Value>
+ </ListValues>
+ </avrgcc.compiler.symbols.DefSymbols>
+ <avrgcc.compiler.optimization.level>Optimize (-O1)</avrgcc.compiler.optimization.level>
+ <avrgcc.compiler.optimization.PackStructureMembers>True</avrgcc.compiler.optimization.PackStructureMembers>
+ <avrgcc.compiler.optimization.AllocateBytesNeededForEnum>True</avrgcc.compiler.optimization.AllocateBytesNeededForEnum>
+ <avrgcc.compiler.optimization.DebugLevel>Default (-g2)</avrgcc.compiler.optimization.DebugLevel>
+ <avrgcc.compiler.warnings.AllWarnings>True</avrgcc.compiler.warnings.AllWarnings>
+ <avrgcc.linker.libraries.Libraries>
+ <ListValues>
+ <Value>libm</Value>
+ </ListValues>
+ </avrgcc.linker.libraries.Libraries>
+ <avrgcc.assembler.debugging.DebugLevel>Default (-Wa,-g)</avrgcc.assembler.debugging.DebugLevel>
+</AvrGcc>
+ </ToolchainSettings>
+ </PropertyGroup>
+ <ItemGroup>
+ <Compile Include="buttons.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="buttons.h">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="encoder.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="encoder.h">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="led_driver.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="led_driver.h">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="led_pattern.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="led_pattern.h">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="main.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="mode_leds.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="mode_leds.h">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="timer.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="timer.h">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="TWI_master.c">
+ <SubType>compile</SubType>
+ </Compile>
+ <Compile Include="TWI_master.h">
+ <SubType>compile</SubType>
+ </Compile>
+ </ItemGroup>
+ <Import Project="$(AVRSTUDIO_EXE_PATH)\\Vs\\Compiler.targets" />
+</Project>
Oops, something went wrong.

0 comments on commit 0de852c

Please sign in to comment.