-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e549fd
commit ff5d869
Showing
5 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System; | ||
using System.Threading; | ||
using Meadow; | ||
using Meadow.Devices; | ||
|
||
namespace MeadowApp | ||
{ | ||
public class MeadowApp : App<F7Micro, MeadowApp> | ||
{ | ||
|
||
public MeadowApp() | ||
{ | ||
//set current time to 12pm on March 20, 2020 | ||
Console.WriteLine("Hello RTC"); | ||
|
||
Device.SetClock(new DateTime(2020, 3, 22, 12, 0, 0)); | ||
|
||
Console.WriteLine($"Today is: {DateTime.Now}"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Threading; | ||
using Meadow; | ||
|
||
namespace MeadowApp | ||
{ | ||
class Program | ||
{ | ||
static IApp app; | ||
public static void Main(string[] args) | ||
{ | ||
// instantiate and run new meadow app | ||
app = new MeadowApp(); | ||
|
||
Thread.Sleep(Timeout.Infinite); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Meadow.Sdk/1.1.0"> | ||
<PropertyGroup> | ||
<TargetFramework>net472</TargetFramework> | ||
<OutputType>Exe</OutputType> | ||
<AssemblyName>App</AssemblyName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\Meadow.Core\Meadow.Core.csproj" /> | ||
</ItemGroup> | ||
</Project> |