Adam PIppin
3 years ago
commit
55fdb13d53
8 changed files with 316 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
/.vs/ |
|||
*.swp |
|||
/watchos/__vm/.watchos.vsarduino.h |
|||
/watchos/watchos.vcxproj.user |
|||
/watchos/Debug/ |
|||
/watchos/Release/ |
@ -0,0 +1,25 @@ |
|||
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00 |
|||
# Visual Studio Version 16 |
|||
VisualStudioVersion = 16.0.31105.61 |
|||
MinimumVisualStudioVersion = 10.0.40219.1 |
|||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "watchos2", "watchos2\watchos2.vcxproj", "{C5F80730-F44F-4478-BDAE-6634EFC2CA88}" |
|||
EndProject |
|||
Global |
|||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|||
Debug|x86 = Debug|x86 |
|||
Release|x86 = Release|x86 |
|||
EndGlobalSection |
|||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Debug|x86.ActiveCfg = Debug|Win32 |
|||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Debug|x86.Build.0 = Debug|Win32 |
|||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Release|x86.ActiveCfg = Release|Win32 |
|||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Release|x86.Build.0 = Release|Win32 |
|||
EndGlobalSection |
|||
GlobalSection(SolutionProperties) = preSolution |
|||
HideSolutionNode = FALSE |
|||
EndGlobalSection |
|||
GlobalSection(ExtensibilityGlobals) = postSolution |
|||
SolutionGuid = {D3D17873-AA42-4AF5-B2F1-1A9413E4DFDA} |
|||
EndGlobalSection |
|||
EndGlobal |
@ -0,0 +1,108 @@ |
|||
/*
|
|||
Editor: https://www.visualmicro.com/
|
|||
This file is for intellisense purpose only. |
|||
Visual micro (and the arduino ide) ignore this code during compilation. This code is automatically maintained by visualmicro, manual changes to this file will be overwritten |
|||
The contents of the _vm sub folder can be deleted prior to publishing a project |
|||
All non-arduino files created by visual micro and all visual studio project or solution files can be freely deleted and are not required to compile a sketch (do not delete your own code!). |
|||
Note: debugger breakpoints are stored in '.sln' or '.asln' files, knowledge of last uploaded breakpoints is stored in the upload.vmps.xml file. Both files are required to continue a previous debug session without needing to compile and upload again |
|||
|
|||
Hardware: ESP32 Dev Module, Platform=esp32, Package=esp32 |
|||
*/ |
|||
|
|||
#if defined(_VMICRO_INTELLISENSE) |
|||
|
|||
#ifndef _VSARDUINO_H_ |
|||
#define _VSARDUINO_H_ |
|||
#define __ESP32_esp32__ |
|||
#define __ESP32_ESP32__ |
|||
#define ESP_PLATFORM |
|||
#define HAVE_CONFIG_H |
|||
#define GCC_NOT_5_2_0 0 |
|||
#define WITH_POSIX |
|||
#define F_CPU 240000000L |
|||
#define ARDUINO 108015 |
|||
#define ARDUINO_ESP32_DEV |
|||
#define ARDUINO_ARCH_ESP32 |
|||
#define ESP32 |
|||
#define CORE_DEBUG_LEVEL 0 |
|||
#define __cplusplus 201103L |
|||
|
|||
#define _Pragma(x) |
|||
#undef __cplusplus |
|||
#define __cplusplus 201103L |
|||
|
|||
#define __STDC__ |
|||
#define __ARM__ |
|||
#define __arm__ |
|||
#define __inline__ |
|||
#define __asm__(...) |
|||
#define __extension__ |
|||
#define __ATTR_PURE__ |
|||
#define __ATTR_CONST__ |
|||
#define __volatile__ |
|||
|
|||
#define __ASM |
|||
#define __INLINE |
|||
#define __attribute__(noinline) |
|||
|
|||
//#define _STD_BEGIN
|
|||
//#define EMIT
|
|||
#define WARNING |
|||
#define _Lockit |
|||
#define __CLR_OR_THIS_CALL |
|||
#define C4005 |
|||
#define _NEW |
|||
|
|||
typedef bool _Bool; |
|||
typedef int _read; |
|||
typedef int _seek; |
|||
typedef int _write; |
|||
typedef int _close; |
|||
typedef int __cleanup; |
|||
|
|||
//#define inline
|
|||
|
|||
#define __builtin_clz |
|||
#define __builtin_clzl |
|||
#define __builtin_clzll |
|||
#define __builtin_labs |
|||
#define __builtin_va_list |
|||
typedef int __gnuc_va_list; |
|||
|
|||
#define __ATOMIC_ACQ_REL |
|||
|
|||
#define __CHAR_BIT__ |
|||
#define _EXFUN() |
|||
|
|||
typedef unsigned char byte; |
|||
extern "C" void __cxa_pure_virtual() {;} |
|||
|
|||
typedef long __INTPTR_TYPE__ ; |
|||
typedef long __UINTPTR_TYPE__ ; |
|||
typedef long __SIZE_TYPE__ ; |
|||
typedef long __PTRDIFF_TYPE__; |
|||
|
|||
typedef long pthread_t; |
|||
typedef long pthread_key_t; |
|||
typedef long pthread_once_t; |
|||
typedef long pthread_mutex_t; |
|||
typedef long pthread_mutex_t; |
|||
typedef long pthread_cond_t; |
|||
|
|||
|
|||
|
|||
#include "arduino.h" |
|||
#include <pins_arduino.h> |
|||
|
|||
#define interrupts() sei() |
|||
#define noInterrupts() cli() |
|||
|
|||
#define ESP_LOGI(tag, ...) |
|||
|
|||
// Read Value from Register
|
|||
#define READ_PERI_REG(addr) |
|||
// Write Value to Register
|
|||
#define WRITE_PERI_REG(addr,val) |
|||
#include "watchos2.ino" |
|||
#endif |
|||
#endif |
@ -0,0 +1,14 @@ |
|||
##################################################### |
|||
Arduino How To: Use sub folders for source code |
|||
http://www.visualmicro.com/ |
|||
##################################################### |
|||
|
|||
* .INO code can exist in the project folder and '\src' folder. |
|||
* .Cpp/.c/.S/.h etc. can exist in the project folder, the '\src' folder and in any folder(s) below the '\src' folder. |
|||
* .Cpp/.c/.S/.h sources in shared code projects should follow the same folder rules (because they are merged with the project sources into a temporary build folder prior to compile). |
|||
|
|||
* Use the 'Show All Files' icon above the 'Solution Explorer' to switch between 'included project files' and 'physical files/folders'. |
|||
* Source code in the project folder will always be compiled regardless of inclusion in the project. This functionality can be disabled in Global Options. |
|||
|
|||
|
|||
|
@ -0,0 +1,15 @@ |
|||
/*
|
|||
Name: watchos2.ino |
|||
Created: 6/30/2021 9:38:10 PM |
|||
Author: Adam |
|||
*/ |
|||
|
|||
// the setup function runs once when you press reset or power the board
|
|||
void setup() { |
|||
|
|||
} |
|||
|
|||
// the loop function runs over and over again until power down or reset
|
|||
void loop() { |
|||
|
|||
} |
@ -0,0 +1,121 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<ItemGroup Label="ProjectConfigurations"> |
|||
<ProjectConfiguration Include="Debug|Win32"> |
|||
<Configuration>Debug</Configuration> |
|||
<Platform>Win32</Platform> |
|||
</ProjectConfiguration> |
|||
<ProjectConfiguration Include="Release|Win32"> |
|||
<Configuration>Release</Configuration> |
|||
<Platform>Win32</Platform> |
|||
</ProjectConfiguration> |
|||
</ItemGroup> |
|||
<PropertyGroup Label="Globals"> |
|||
<ProjectGuid>{C5F80730-F44F-4478-BDAE-6634EFC2CA88}</ProjectGuid> |
|||
<RootNamespace>watchos2</RootNamespace> |
|||
<ProjectName>watchos2</ProjectName> |
|||
</PropertyGroup> |
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" /> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration"> |
|||
<ConfigurationType>Application</ConfigurationType> |
|||
<UseDebugLibraries>true</UseDebugLibraries> |
|||
<CharacterSet>MultiByte</CharacterSet> |
|||
<PlatformToolset> |
|||
</PlatformToolset> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration"> |
|||
<ConfigurationType>Application</ConfigurationType> |
|||
<UseDebugLibraries>false</UseDebugLibraries> |
|||
<WholeProgramOptimization>true</WholeProgramOptimization> |
|||
<CharacterSet>MultiByte</CharacterSet> |
|||
<PlatformToolset> |
|||
</PlatformToolset> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration"> |
|||
<ConfigurationType>Application</ConfigurationType> |
|||
<UseDebugLibraries>true</UseDebugLibraries> |
|||
<CharacterSet>MultiByte</CharacterSet> |
|||
<PlatformToolset> |
|||
</PlatformToolset> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
|||
<ConfigurationType>Application</ConfigurationType> |
|||
<UseDebugLibraries>false</UseDebugLibraries> |
|||
<WholeProgramOptimization>true</WholeProgramOptimization> |
|||
<CharacterSet>MultiByte</CharacterSet> |
|||
<PlatformToolset> |
|||
</PlatformToolset> |
|||
</PropertyGroup> |
|||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration"> |
|||
<ConfigurationType>Application</ConfigurationType> |
|||
<UseDebugLibraries>false</UseDebugLibraries> |
|||
<WholeProgramOptimization>true</WholeProgramOptimization> |
|||
<CharacterSet>MultiByte</CharacterSet> |
|||
<PlatformToolset>v141</PlatformToolset> |
|||
</PropertyGroup> |
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" /> |
|||
<ImportGroup Label="ExtensionSettings"> |
|||
</ImportGroup> |
|||
<ImportGroup Label="Shared"> |
|||
</ImportGroup> |
|||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
|||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
|||
</ImportGroup> |
|||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
|||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
|||
</ImportGroup> |
|||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
|||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
|||
</ImportGroup> |
|||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
|||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" /> |
|||
</ImportGroup> |
|||
<PropertyGroup Label="UserMacros" /> |
|||
<PropertyGroup /> |
|||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
|||
<ClCompile> |
|||
<WarningLevel>Level3</WarningLevel> |
|||
<Optimization>Disabled</Optimization> |
|||
<SDLCheck>true</SDLCheck> |
|||
<AdditionalIncludeDirectories>%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories> |
|||
<ForcedIncludeFiles>%(ForcedIncludeFiles)</ForcedIncludeFiles> |
|||
<IgnoreStandardIncludePath>true</IgnoreStandardIncludePath> |
|||
<PreprocessorDefinitions>%(PreprocessorDefinitions)</PreprocessorDefinitions> |
|||
</ClCompile> |
|||
<Link> |
|||
<GenerateDebugInformation>true</GenerateDebugInformation> |
|||
</Link> |
|||
</ItemDefinitionGroup> |
|||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
|||
<ClCompile> |
|||
<WarningLevel>Level3</WarningLevel> |
|||
<Optimization>MaxSpeed</Optimization> |
|||
<FunctionLevelLinking>true</FunctionLevelLinking> |
|||
<IntrinsicFunctions>true</IntrinsicFunctions> |
|||
<SDLCheck>true</SDLCheck> |
|||
</ClCompile> |
|||
<Link> |
|||
<GenerateDebugInformation>true</GenerateDebugInformation> |
|||
<EnableCOMDATFolding>true</EnableCOMDATFolding> |
|||
<OptimizeReferences>true</OptimizeReferences> |
|||
</Link> |
|||
</ItemDefinitionGroup> |
|||
<ItemGroup> |
|||
<ProjectCapability Include="VisualMicro" /> |
|||
</ItemGroup> |
|||
<PropertyGroup> |
|||
<DebuggerFlavor>VisualMicroDebugger</DebuggerFlavor> |
|||
</PropertyGroup> |
|||
<ItemGroup> |
|||
<None Include="watchos2.ino"> |
|||
<FileType>CppCode</FileType> |
|||
</None> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<None Include="src\arduino folders read me.txt"> |
|||
</None> |
|||
</ItemGroup> |
|||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> |
|||
<ImportGroup Label="ExtensionTargets"> |
|||
</ImportGroup> |
|||
</Project> |
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<ItemGroup> |
|||
<Filter Include="Source Files"> |
|||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier> |
|||
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions> |
|||
</Filter> |
|||
<Filter Include="Header Files"> |
|||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier> |
|||
<Extensions>h;hh;hpp;hxx;hm;inl;inc;xsd</Extensions> |
|||
</Filter> |
|||
<Filter Include="Misc Files"> |
|||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier> |
|||
<Extensions>xml;json;txt;rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions> |
|||
</Filter> |
|||
</ItemGroup> |
|||
<ItemGroup> |
|||
<None Include="watchos2.ino" /> |
|||
<None Include="src\arduino folders read me.txt"> |
|||
<Filter>Misc Files</Filter> |
|||
</None> |
|||
</ItemGroup> |
|||
</Project> |
@ -0,0 +1,4 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
|||
<PropertyGroup /> |
|||
</Project> |
Loading…
Reference in new issue