azurha
Posts: 1
Joined: Wed Jan 06, 2016 2:58 pm

Thread.Sleep error CS0103

Wed Jan 06, 2016 3:50 pm

Hi

For the first time with raspberry and Windows Iot I have follow these steps : https://ms-iot.github.io/content/en-US/ ... Blinky.htm

It's work very well :)

But, just for fun and learn i try to edit this sample, add led for example.

But when i try to use Thread.Sleep(500), i have an error CS0103.

Of course i have put using system.Threading;

I need help :'(

Thanks you

ricl
Posts: 657
Joined: Wed Aug 26, 2015 11:55 am

Re: Thread.Sleep error CS0103

Wed Jan 06, 2016 7:41 pm

You need
await Task.Delay(nn);

for UI waits. It does work.
ricl : F/gamma = ma : Law ii(a) : https://climatedatablog.wordpress.com/2016/01/02/an-energy-challenge-2016/ #AnEnergyChallenge2016

Return to “Windows 10 for IoT”