Skip to content
Snippets Groups Projects
Commit 5a66bf7c authored by Bengt Ragnemalm's avatar Bengt Ragnemalm
Browse files

Added moved folder

parent 8cd0bb33
Branches
No related tags found
No related merge requests found
Showing
with 3560 additions and 0 deletions
File added

Microsoft Visual Studio Solution File, Format Version 12.00
# Atmel Studio Solution File, Format Version 11.00
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{E66E83B9-2572-4076-B26E-6BE79FF3018A}") = "UsbReceive", "UsbReceive\UsbReceive\UsbReceive.cppproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}"
EndProject
Project("{E66E83B9-2572-4076-B26E-6BE79FF3018A}") = "ArduinoCore", "UsbReceive\ArduinoCore\ArduinoCore.cppproj", "{3CF7A0AB-B365-4936-958E-A8B73130CCDE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM = Debug|ARM
Release|ARM = Release|ARM
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|ARM.ActiveCfg = Debug|ARM
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|ARM.Build.0 = Debug|ARM
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|ARM.ActiveCfg = Release|ARM
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|ARM.Build.0 = Release|ARM
{3CF7A0AB-B365-4936-958E-A8B73130CCDE}.Debug|ARM.ActiveCfg = Debug|ARM
{3CF7A0AB-B365-4936-958E-A8B73130CCDE}.Debug|ARM.Build.0 = Debug|ARM
{3CF7A0AB-B365-4936-958E-A8B73130CCDE}.Release|ARM.ActiveCfg = Release|ARM
{3CF7A0AB-B365-4936-958E-A8B73130CCDE}.Release|ARM.Build.0 = Release|ARM
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
/*************************************************************************
* Code that reads values sent from python through serial
************************************************************************/
#include <Wire.h> // For I2C communication with sensor
#include <Wireling.h> // For interfacing with Wirelings
// Make Serial Monitor compatible for all TinyCircuits processors
#if defined(ARDUINO_ARCH_AVR)
#define SerialMonitorInterface Serial
#elif defined(ARDUINO_ARCH_SAMD)
#define SerialMonitorInterface SerialUSB
#endif
void setup() {
SerialMonitorInterface.begin(115200);
Wire.begin();
// Initialize Wireling
Wireling.begin();
Wireling.selectPort(0);
analogWriteResolution(10); //Change the DAC resolution to 10-bits
analogWrite(A0, 0); // Initialize Dac to Zero
}
void loop() {
int output;
//static float x = 270; // Current degrees for sine wave (initially 270 so that
// the sine wave is initially zero).
// output = (int) (512.0 * sin(0.017453 * x) + 512); // Sine Wave
if (SerialMonitorInterface.available()> -1) {
output = SerialMonitorInterface.parseInt();
analogWrite(A0, output);
}// end if serial available
//analogWrite(A0, output); // Write the analog output to A0
//SerialMonitorInterface.print(output);
//SerialMonitorInterface.println();
/*
* Increment Degrees for the Next Wave Point
*
* To utilize the entire resolution of the 10-bit DAC, at least 1024
* values must be used between 0 and 360 degrees. Therefore, a step
* value greater than 360/1024 will not utilize the entier resolution
* of the DAC.
*/
//x += 0.35;
//if(x>=360.0) x -= 360.0;
//delay(1);
}
<?xml version="1.0" encoding="utf-8"?>
<Store xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="AtmelPackComponentManagement">
<ProjectComponents>
<ProjectComponent z:Id="i1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
<CApiVersion></CApiVersion>
<CBundle></CBundle>
<CClass>CMSIS</CClass>
<CGroup>CORE</CGroup>
<CSub></CSub>
<CVariant></CVariant>
<CVendor>ARM</CVendor>
<CVersion>5.1.2</CVersion>
<DefaultRepoPath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs</DefaultRepoPath>
<DependentComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<Description></Description>
<Files xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:anyType i:type="FileInfo">
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\arm\CMSIS\5.4.0\CMSIS\Documentation\Core\html\index.html</AbsolutePath>
<Attribute></Attribute>
<Category>doc</Category>
<Condition></Condition>
<FileContentHash i:nil="true" />
<FileVersion></FileVersion>
<Name>CMSIS/Documentation/Core/html/index.html</Name>
<SelectString></SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType i:type="FileInfo">
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\arm\CMSIS\5.4.0\CMSIS\Core\Include\</AbsolutePath>
<Attribute></Attribute>
<Category>include</Category>
<Condition></Condition>
<FileContentHash i:nil="true" />
<FileVersion></FileVersion>
<Name>CMSIS/Core/Include/</Name>
<SelectString></SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
</Files>
<PackName>CMSIS</PackName>
<PackPath>C:/Program Files (x86)/Atmel/Studio/7.0/Packs/arm/CMSIS/5.4.0/ARM.CMSIS.pdsc</PackPath>
<PackVersion>5.4.0</PackVersion>
<PresentInProject>true</PresentInProject>
<ReferenceConditionId>ARMv6_7_8-M Device</ReferenceConditionId>
<RteComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string></d4p1:string>
</RteComponents>
<Status>Resolved</Status>
<VersionMode>Fixed</VersionMode>
<IsComponentInAtProject>true</IsComponentInAtProject>
</ProjectComponent>
<ProjectComponent z:Id="i2" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/">
<CApiVersion></CApiVersion>
<CBundle></CBundle>
<CClass>Device</CClass>
<CGroup>Startup</CGroup>
<CSub></CSub>
<CVariant></CVariant>
<CVendor>Atmel</CVendor>
<CVersion>1.3.0</CVersion>
<DefaultRepoPath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs</DefaultRepoPath>
<DependentComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:anyType z:Ref="i1" />
</DependentComponents>
<Description></Description>
<Files xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:anyType i:type="FileInfo">
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAMD21_DFP\1.3.395\samd21a\include</AbsolutePath>
<Attribute></Attribute>
<Category>include</Category>
<Condition>C</Condition>
<FileContentHash i:nil="true" />
<FileVersion></FileVersion>
<Name>samd21a/include</Name>
<SelectString></SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType i:type="FileInfo">
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAMD21_DFP\1.3.395\samd21a\include\sam.h</AbsolutePath>
<Attribute></Attribute>
<Category>header</Category>
<Condition>C</Condition>
<FileContentHash>V54vVU6riwaXcelmdQefHA==</FileContentHash>
<FileVersion></FileVersion>
<Name>samd21a/include/sam.h</Name>
<SelectString></SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType i:type="FileInfo">
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAMD21_DFP\1.3.395\samd21a\templates\library.c</AbsolutePath>
<Attribute>template</Attribute>
<Category>source</Category>
<Condition>C Lib</Condition>
<FileContentHash>Uuf63uKt4ieOmYoYXl4EtA==</FileContentHash>
<FileVersion></FileVersion>
<Name>samd21a/templates/library.c</Name>
<SelectString>Main file (.c)</SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
<d4p1:anyType i:type="FileInfo">
<AbsolutePath>C:/Program Files (x86)\Atmel\Studio\7.0\Packs\atmel\SAMD21_DFP\1.3.395\samd21a\templates\library.cpp</AbsolutePath>
<Attribute>template</Attribute>
<Category>source</Category>
<Condition>C Lib</Condition>
<FileContentHash>dpWyIjCXKdZ0h+C1ySnhAA==</FileContentHash>
<FileVersion></FileVersion>
<Name>samd21a/templates/library.cpp</Name>
<SelectString>Main file (.cpp)</SelectString>
<SourcePath></SourcePath>
</d4p1:anyType>
</Files>
<PackName>SAMD21_DFP</PackName>
<PackPath>C:/Program Files (x86)/Atmel/Studio/7.0/Packs/atmel/SAMD21_DFP/1.3.395/Atmel.SAMD21_DFP.pdsc</PackPath>
<PackVersion>1.3.395</PackVersion>
<PresentInProject>true</PresentInProject>
<ReferenceConditionId>ATSAMD21G18A</ReferenceConditionId>
<RteComponents xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string></d4p1:string>
</RteComponents>
<Status>Resolved</Status>
<VersionMode>Fixed</VersionMode>
<IsComponentInAtProject>true</IsComponentInAtProject>
</ProjectComponent>
</ProjectComponents>
</Store>
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
File added
################################################################################
# Automatically-generated file. Do not edit or delete the file
################################################################################
src\core\abi.cpp
src\core\avr\dtostrf.c
src\core\cortex_handlers.c
src\core\delay.c
src\core\hooks.c
src\core\IPAddress.cpp
src\core\itoa.c
src\core\main.cpp
src\core\new.cpp
src\core\PreprocessingAssembly\pulse_asm.S
src\core\Print.cpp
src\core\pulse.c
src\core\pulse_asm.S
src\core\Reset.cpp
src\core\SERCOM.cpp
src\core\startup.c
src\core\Stream.cpp
src\core\Tone.cpp
src\core\Uart.cpp
src\core\USB\CDC.cpp
src\core\USB\PluggableUSB.cpp
src\core\USB\samd21_host.c
src\core\USB\USBCore.cpp
src\core\WInterrupts.c
src\core\wiring.c
src\core\wiring_analog.c
src\core\wiring_digital.c
src\core\wiring_private.c
src\core\wiring_shift.c
src\core\WMath.cpp
src\core\WString.cpp
src\libraries\wire\Wire.cpp
src\variants\variant.cpp
This diff is collapsed.
File added
src/core/PreprocessingAssembly/pulse_asm.d \
src/core/PreprocessingAssembly/pulse_asm.o: \
../src/core/PreprocessingAssembly/pulse_asm.S
File added
This diff is collapsed.
File added
This diff is collapsed.
File added
This diff is collapsed.
File added
This diff is collapsed.
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment