USB Drives, Memory Sticks, etc

Enabling Access Of USB Drive Files These are located in: Windows.Storage.KnownFolders.RemovableDevices You will need manifest permissions to access though: Open Package.appxmanifest > Capabilities > Enable ‘Removable Storage’ You also have to declare what files types you will work with (or you will get Access is denied exception errors when trying to access RemovableDevices): Open Package.appxmanifest > Declarations […]

Read More

Stopwatch

The stopwatch is the highest resolution timer available and goes down to 100nano-second resolution. The time cost of the Gpio.Write and Gpio.Read methods can be an issue with time sensitive things. Using Stopwatch To Accurately Delay using System.Diagnostics; private Stopwatch Stopwatch1; Stopwatch1 = Stopwatch.StartNew(); StopwatchWait(5); //Delay in mS //************************************* //************************************* //*********** STOPWATCH WAIT ********** //************************************* //************************************* […]

Read More

.Timers General

The stopwatch is the highest resolution timer available and goes down to 100nano-second resolution. The time cost of the Gpio.Write and Gpio.Read methods can be an issue with time sensitive things.

Read More

.Using List

Declaring List<byte> LogEvents = new List<byte>(); //or for a class: List<LogEventClass> LogEvents = new List<LogEventClass>(); Adding Objects LogEventClass LogEvent1 = new LogEventClass(); LogEvents.Add(LogEvent1); Add Array LogEvents.AddRange(System.Text.Encoding.UTF8.GetBytes(NameText)); Removing Objects Find the object index then LogEvents.RemoveAt(Index); There is also RemoveRange or just Remove where you specify an exact match for it to find and remove. Total Number […]

Read More

Upgrading Existing Application

How to manually upgrade and existing application running as the default ap Use the web interface Go To 'Apps' First you need to stop the existing version of the app running as default: For the app named 'IoTCoreDefaultApp' select 'Set as Default App' Wait a few seconds if needed for the message box confirming the new […]

Read More

Shutdown and reboot

Requirements To Use Enable System Management capability for your app Right click Package.appxmanifest > View Code.  In the Capabilities sections add the following line <iot:Capability Name="systemManagement"/> If you get a squigle red line "iot not recognised type error" then you need to update the start of the file xmlns as follows (note the 4th xmlns […]

Read More

Windows Store

Register As An App Developer You can create an inividual or company developer account.  There is a one time registration charge. https://developer.microsoft.com/en-us/store/register Windows Developer Account Management https://developer.microsoft.com/en-us/dashboard/Account/Management  

Read More