diff --git a/.gitignore b/door-thing-firmware/.gitignore similarity index 100% rename from .gitignore rename to door-thing-firmware/.gitignore diff --git a/.vscode/extensions.json b/door-thing-firmware/.vscode/extensions.json similarity index 100% rename from .vscode/extensions.json rename to door-thing-firmware/.vscode/extensions.json diff --git a/include/README b/door-thing-firmware/include/README similarity index 100% rename from include/README rename to door-thing-firmware/include/README diff --git a/lib/README b/door-thing-firmware/lib/README similarity index 100% rename from lib/README rename to door-thing-firmware/lib/README diff --git a/platformio.ini b/door-thing-firmware/platformio.ini similarity index 89% rename from platformio.ini rename to door-thing-firmware/platformio.ini index b730a1a..242be81 100644 --- a/platformio.ini +++ b/door-thing-firmware/platformio.ini @@ -12,4 +12,4 @@ platform = nordicnrf52 board = nano33ble framework = arduino -;lib_deps = arduino-libraries/Arduino_LSM9DS1@^1.1.0 +lib_deps = arduino-libraries/ArduinoBLE@^1.2.2 diff --git a/door-thing-firmware/src/main.cpp b/door-thing-firmware/src/main.cpp new file mode 100644 index 0000000..ff9f0d5 --- /dev/null +++ b/door-thing-firmware/src/main.cpp @@ -0,0 +1,85 @@ +#include +#include + +// Door switch pin +#define SWITCH_PIN 2 + +BLEService switchService("180A"); // BLE Switch Service + +// BLE Switch Characteristic - custom 128-bit UUID, read by central +BLEByteCharacteristic switchCharacteristic("1234", BLERead | BLEIndicate); + +void setup() +{ + Serial.begin(9600); + // while (!Serial) + // ; + + // begin initialization + if (!BLE.begin()) + { + Serial.println("starting Bluetooth® Low Energy failed!"); + while (1) + ; + } + pinMode(SWITCH_PIN, INPUT); + + // set advertised local name and service UUID: + BLE.setLocalName("Nano 33 BLE"); + BLE.setAdvertisedService(switchService); + + // add the characteristic to the service + switchService.addCharacteristic(switchCharacteristic); + + // add service + BLE.addService(switchService); + + // set the initial value for the characteristic: + switchCharacteristic.writeValue(0); + + // start advertising + BLE.advertise(); + + Serial.println("BLE Switch Peripheral"); +} + +void loop() +{ + // listen for BLE peripherals to connect: + BLEDevice central = BLE.central(); + + // if a central is connected to peripheral: + if (central) + { + Serial.print("Connected to central: "); + // print the central's MAC address: + Serial.println(central.address()); + digitalWrite(LED_BUILTIN, HIGH); // turn on the LED to indicate the connection + + // while the central is still connected to peripheral: + bool oldState = digitalRead(SWITCH_PIN); + while (central.connected()) + { + // read the switch state: + bool newState = digitalRead(SWITCH_PIN); + + // if the switch state has changed: + if (newState != oldState) + { + // update the characteristic value: + switchCharacteristic.writeValue(newState); + + // print the new switch state: + Serial.print("Switch state: "); + Serial.println(newState); + + // update the old switch state: + oldState = newState; + } + } + + // when the central disconnects, print it out: + Serial.print(F("Disconnected from central: ")); + Serial.println(central.address()); + } +} \ No newline at end of file diff --git a/test/README b/door-thing-firmware/test/README similarity index 100% rename from test/README rename to door-thing-firmware/test/README diff --git a/door-thing-win/.gitignore b/door-thing-win/.gitignore new file mode 100644 index 0000000..9491a2f --- /dev/null +++ b/door-thing-win/.gitignore @@ -0,0 +1,363 @@ +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Oo]ut/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET Core +project.lock.json +project.fragment.lock.json +artifacts/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd \ No newline at end of file diff --git a/door-thing-win/door-thing-app/App.xaml b/door-thing-win/door-thing-app/App.xaml new file mode 100644 index 0000000..a69dc08 --- /dev/null +++ b/door-thing-win/door-thing-app/App.xaml @@ -0,0 +1,7 @@ + + + diff --git a/door-thing-win/door-thing-app/App.xaml.cs b/door-thing-win/door-thing-app/App.xaml.cs new file mode 100644 index 0000000..8734a93 --- /dev/null +++ b/door-thing-win/door-thing-app/App.xaml.cs @@ -0,0 +1,100 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.ApplicationModel; +using Windows.ApplicationModel.Activation; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +namespace door_thing_app +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + sealed partial class App : Application + { + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + this.Suspending += OnSuspending; + } + + /// + /// Invoked when the application is launched normally by the end user. Other entry points + /// will be used such as when the application is launched to open a specific file. + /// + /// Details about the launch request and process. + protected override void OnLaunched(LaunchActivatedEventArgs e) + { + Frame rootFrame = Window.Current.Content as Frame; + + // Do not repeat app initialization when the Window already has content, + // just ensure that the window is active + if (rootFrame == null) + { + // Create a Frame to act as the navigation context and navigate to the first page + rootFrame = new Frame(); + + rootFrame.NavigationFailed += OnNavigationFailed; + + if (e.PreviousExecutionState == ApplicationExecutionState.Terminated) + { + //TODO: Load state from previously suspended application + } + + // Place the frame in the current Window + Window.Current.Content = rootFrame; + } + + if (e.PrelaunchActivated == false) + { + if (rootFrame.Content == null) + { + // When the navigation stack isn't restored navigate to the first page, + // configuring the new page by passing required information as a navigation + // parameter + rootFrame.Navigate(typeof(MainPage), e.Arguments); + } + // Ensure the current window is active + Window.Current.Activate(); + } + } + + /// + /// Invoked when Navigation to a certain page fails + /// + /// The Frame which failed navigation + /// Details about the navigation failure + void OnNavigationFailed(object sender, NavigationFailedEventArgs e) + { + throw new Exception("Failed to load Page " + e.SourcePageType.FullName); + } + + /// + /// Invoked when application execution is being suspended. Application state is saved + /// without knowing whether the application will be terminated or resumed with the contents + /// of memory still intact. + /// + /// The source of the suspend request. + /// Details about the suspend request. + private void OnSuspending(object sender, SuspendingEventArgs e) + { + var deferral = e.SuspendingOperation.GetDeferral(); + //TODO: Save application state and stop any background activity + deferral.Complete(); + } + } +} diff --git a/door-thing-win/door-thing-app/Assets/LockScreenLogo.scale-200.png b/door-thing-win/door-thing-app/Assets/LockScreenLogo.scale-200.png new file mode 100644 index 0000000..735f57a Binary files /dev/null and b/door-thing-win/door-thing-app/Assets/LockScreenLogo.scale-200.png differ diff --git a/door-thing-win/door-thing-app/Assets/SplashScreen.scale-200.png b/door-thing-win/door-thing-app/Assets/SplashScreen.scale-200.png new file mode 100644 index 0000000..023e7f1 Binary files /dev/null and b/door-thing-win/door-thing-app/Assets/SplashScreen.scale-200.png differ diff --git a/door-thing-win/door-thing-app/Assets/Square150x150Logo.scale-200.png b/door-thing-win/door-thing-app/Assets/Square150x150Logo.scale-200.png new file mode 100644 index 0000000..af49fec Binary files /dev/null and b/door-thing-win/door-thing-app/Assets/Square150x150Logo.scale-200.png differ diff --git a/door-thing-win/door-thing-app/Assets/Square44x44Logo.scale-200.png b/door-thing-win/door-thing-app/Assets/Square44x44Logo.scale-200.png new file mode 100644 index 0000000..ce342a2 Binary files /dev/null and b/door-thing-win/door-thing-app/Assets/Square44x44Logo.scale-200.png differ diff --git a/door-thing-win/door-thing-app/Assets/Square44x44Logo.targetsize-24_altform-unplated.png b/door-thing-win/door-thing-app/Assets/Square44x44Logo.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..f6c02ce Binary files /dev/null and b/door-thing-win/door-thing-app/Assets/Square44x44Logo.targetsize-24_altform-unplated.png differ diff --git a/door-thing-win/door-thing-app/Assets/StoreLogo.png b/door-thing-win/door-thing-app/Assets/StoreLogo.png new file mode 100644 index 0000000..7385b56 Binary files /dev/null and b/door-thing-win/door-thing-app/Assets/StoreLogo.png differ diff --git a/door-thing-win/door-thing-app/Assets/Wide310x150Logo.scale-200.png b/door-thing-win/door-thing-app/Assets/Wide310x150Logo.scale-200.png new file mode 100644 index 0000000..288995b Binary files /dev/null and b/door-thing-win/door-thing-app/Assets/Wide310x150Logo.scale-200.png differ diff --git a/door-thing-win/door-thing-app/MainPage.xaml b/door-thing-win/door-thing-app/MainPage.xaml new file mode 100644 index 0000000..a7c192a --- /dev/null +++ b/door-thing-win/door-thing-app/MainPage.xaml @@ -0,0 +1,14 @@ + + + + + + diff --git a/door-thing-win/door-thing-app/MainPage.xaml.cs b/door-thing-win/door-thing-app/MainPage.xaml.cs new file mode 100644 index 0000000..a0ac9e8 --- /dev/null +++ b/door-thing-win/door-thing-app/MainPage.xaml.cs @@ -0,0 +1,46 @@ +using System; +using System.Collections.Generic; +using System.Diagnostics; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Devices.Bluetooth.Advertisement; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// The Blank Page item template is documented at https://go.microsoft.com/fwlink/?LinkId=402352&clcid=0x409 + +namespace door_thing_app +{ + /// + /// An empty page that can be used on its own or navigated to within a Frame. + /// + public sealed partial class MainPage : Page + { + BluetoothLEAdvertisementWatcher watcher = new BluetoothLEAdvertisementWatcher(); + + public MainPage() + { + this.InitializeComponent(); + } + + protected override void OnNavigatedTo(NavigationEventArgs e) + { + watcher.Received += OnAdvertisementReceived; + watcher.Start(); + + } + + private void OnAdvertisementReceived(BluetoothLEAdvertisementWatcher sender, BluetoothLEAdvertisementReceivedEventArgs args) + { + Debug.WriteLine(args.ToString()); + } + } +} diff --git a/door-thing-win/door-thing-app/Package.appxmanifest b/door-thing-win/door-thing-app/Package.appxmanifest new file mode 100644 index 0000000..47075dd --- /dev/null +++ b/door-thing-win/door-thing-app/Package.appxmanifest @@ -0,0 +1,50 @@ + + + + + + + + + + door-thing-app + stepu + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/door-thing-win/door-thing-app/Properties/AssemblyInfo.cs b/door-thing-win/door-thing-app/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3ff12e2 --- /dev/null +++ b/door-thing-win/door-thing-app/Properties/AssemblyInfo.cs @@ -0,0 +1,29 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("door-thing-app")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("door-thing-app")] +[assembly: AssemblyCopyright("Copyright © 2022")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] +[assembly: ComVisible(false)] \ No newline at end of file diff --git a/door-thing-win/door-thing-app/Properties/Default.rd.xml b/door-thing-win/door-thing-app/Properties/Default.rd.xml new file mode 100644 index 0000000..af00722 --- /dev/null +++ b/door-thing-win/door-thing-app/Properties/Default.rd.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/door-thing-win/door-thing-app/door-thing-app.csproj b/door-thing-win/door-thing-app/door-thing-app.csproj new file mode 100644 index 0000000..dd04cc7 --- /dev/null +++ b/door-thing-win/door-thing-app/door-thing-app.csproj @@ -0,0 +1,168 @@ + + + + + Debug + x86 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C} + AppContainerExe + Properties + door_thing_app + door-thing-app + en-US + UAP + 10.0.19041.0 + 10.0.17763.0 + 14 + 512 + {A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + true + false + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x86 + false + prompt + true + true + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM + false + prompt + true + true + + + true + bin\ARM64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + ARM64 + false + prompt + true + true + + + bin\ARM64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + ARM64 + false + prompt + true + true + + + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP + ;2008 + full + x64 + false + prompt + true + + + bin\x64\Release\ + TRACE;NETFX_CORE;WINDOWS_UWP + true + ;2008 + pdbonly + x64 + false + prompt + true + true + + + PackageReference + + + + App.xaml + + + MainPage.xaml + + + + + + Designer + + + + + + + + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + + + 6.2.13 + + + + 14.0 + + + + \ No newline at end of file diff --git a/door-thing-win/door-thing-win.sln b/door-thing-win/door-thing-win.sln new file mode 100644 index 0000000..0d678d8 --- /dev/null +++ b/door-thing-win/door-thing-win.sln @@ -0,0 +1,51 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32407.343 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "door-thing-app", "door-thing-app\door-thing-app.csproj", "{6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|ARM = Debug|ARM + Debug|ARM64 = Debug|ARM64 + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|ARM = Release|ARM + Release|ARM64 = Release|ARM64 + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|ARM.ActiveCfg = Debug|ARM + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|ARM.Build.0 = Debug|ARM + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|ARM.Deploy.0 = Debug|ARM + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|ARM64.ActiveCfg = Debug|ARM64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|ARM64.Build.0 = Debug|ARM64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|ARM64.Deploy.0 = Debug|ARM64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|x64.ActiveCfg = Debug|x64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|x64.Build.0 = Debug|x64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|x64.Deploy.0 = Debug|x64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|x86.ActiveCfg = Debug|x86 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|x86.Build.0 = Debug|x86 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Debug|x86.Deploy.0 = Debug|x86 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|ARM.ActiveCfg = Release|ARM + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|ARM.Build.0 = Release|ARM + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|ARM.Deploy.0 = Release|ARM + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|ARM64.ActiveCfg = Release|ARM64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|ARM64.Build.0 = Release|ARM64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|ARM64.Deploy.0 = Release|ARM64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|x64.ActiveCfg = Release|x64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|x64.Build.0 = Release|x64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|x64.Deploy.0 = Release|x64 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|x86.ActiveCfg = Release|x86 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|x86.Build.0 = Release|x86 + {6BCA3BF8-6BAB-4588-B0F0-C4CCD8FF857C}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {25A5501C-0D5F-4399-85BB-504ADAE3D442} + EndGlobalSection +EndGlobal diff --git a/src/main.cpp b/src/main.cpp deleted file mode 100644 index 767836e..0000000 --- a/src/main.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include - -void setup() -{ - pinMode(LED_BUILTIN, OUTPUT); - pinMode(2, INPUT); -} - -void loop() -{ - if (digitalRead(2) == 1) - { - digitalWrite(LED_BUILTIN, HIGH); - } - else - { - digitalWrite(LED_BUILTIN, LOW); - } -}