Agenda for IoT Session @.NET Cologne 2015

Damir Dobric Posts

Next talks:

 

    

Follow me on Twitter: #ddobric



 

 

Archives

 

image

 

WP_20150507_22_52_49_ProWP_20150507_22_54_05_ProWP_20150507_22_55_03_Pro

WP_20150507_22_56_22_ProWP_20150507_22_55_33_Pro

 

private async void doIt(object sender, RoutedEventArgs e)
        {
            m_Voltage = !m_Voltage;
           
            m_Pin27.SetDriveMode(
GpioPinDriveMode
.Output);
           
if
(m_Voltage)
            {
                m_Pin27.Write(
GpioPinValue
.High);

               
await Dispatcher.RunAsync(CoreDispatcherPriority
.Normal, () =>
                {
                    m_GpioStatus.Text =
"ON"
;
                });
            }
           
else

            {
                m_Pin27.Write(
GpioPinValue.Low);

               
await Dispatcher.RunAsync(CoreDispatcherPriority
.Normal, () =>
               
{
                    m_GpioStatus.Text =
"OFF"
;
                });              
            }           
        }



Posted May 07 2015, 11:23 PM by Damir Dobric
developers.de is a .Net Community Blog powered by daenet GmbH.