Method | Description | |
---|---|---|
MainPage ( ) : System |
Method | Description | |
---|---|---|
OnNavigatedTo ( |
Method | Description | |
---|---|---|
Arduino_OnAnalogPinUpdated ( String pin, ushort value ) : void |
This function is called when the Windows Remote Arduino library reports that an input value has changed for an analog pin.
|
|
Arduino_OnDigitalPinUpdated ( byte pin, PinState state ) : void |
This function is called when the Windows Remote Arduino library reports that an input value has changed for a digital pin.
|
|
ConvertAnalogPinToPinNumber ( byte pin ) : byte |
Arduino numbers their analog pins directly after the digital pins. Meaning A0 is actally pin 14 on an Uno, because there are 14 digital pins on an Uno. Therefore, when we're working with functions that don't know the difference between Analog and Digital pin numbers, we need to convert pin 0 (meaning A0) into pin + numberOfDigitalPins
|
|
GetPinFromButtonObject ( |
retrieves the pin number associated with a button object
|
|
LoadPinPages ( ) : void |
This function loads the content of each of the pin pages, as well as the About page. The reason this is done dynamically here, instead of statically in the XAML, is to leave the code open to the possibility of dynamically filling the pages based on the specific pin numbers/orientations of the connected board.
|
|
MenuButton_Click ( object sender, |
Called when a menu button is pressed
|
|
MenuButton_Enter ( object sender, |
Called if the pointer hovers over any of the menu buttons.
|
|
MenuButton_Exit ( object sender, |
Called if the pointer exits the boundaries of any button.
|
|
OnClick_AnalogModeToggleSwitch ( object sender, |
Invoked when the analog mode toggle button is tapped or pressed
|
|
OnClick_DigitalModeToggleSwitch ( object sender, |
Invoked when the analog mode toggle button is tapped or pressed
|
|
OnClick_DigitalStateToggleSwitch ( object sender, |
Invoked when the digital state toggle button is tapped or pressed
|
|
OnClick_PwmModeToggleSwitch ( object sender, |
Invoked when the pwm mode toggle button is tapped or pressed
|
|
OnClick_ServoModeToggleSwitch ( object sender, |
Invoked when the servo mode toggle button is tapped or pressed
|
|
OnPointerReleased_PwmSlider ( object sender, |
This function helps to process telemetry events when manipulation of a PWM slider is complete, rather than after each tick.
|
|
OnPointerReleased_ServoSlider ( object sender, |
This function helps to process telemetry events when manipulation of a servo slider is complete, rather than after each tick.
|
|
OnValueChanged_PwmSlider ( object sender, |
Invoked when the slider value for a PWM pin is modified.
|
|
OnValueChanged_ServoSlider ( object sender, |
Invoked when the slider value for a servo pin is modified.
|
|
ParsePositiveDecimalValueOrThrow ( string text ) : uint |
Parses a string to retrieve an int value. Strings may be in hex (0x??) binary (0b????????) or decimal. Leading 0 not necessary.
|
|
ResetVisibility ( ) : void |
Resets the view of the menu to show nothing selected with no highlights
|
|
RetrieveDeviceConfiguration ( ) : void | ||
SendAnalogTelemetryEvent ( byte pin, double value ) : void |
This function sends a single Analog telemetry event
|
|
ShowToast ( string heading, string body, string body2 ) : void |
displays a toast with the given heading, body, and optional second body
|
|
UpdateAnalogPinModeIndicator ( byte pin ) : void |
This function will determine which pin mode image should be applied for a given analog pin and apply it to the correct Image object
|
|
UpdateAnalogValueIndicator ( byte pin, ushort value ) : void |
This function will apply the given value to the given analog pin input
|
|
UpdateDigitalPinIndicators ( byte pin ) : void |
This function will determine which pin mode image should be applied for a given digital pin and apply it to the correct Image object
|
|
UpdatePwmPinModeIndicator ( byte pin ) : void |
This function will determine which pin mode image should be applied for a given pwm pin and apply it to the correct Image object
|
|
UpdateServoPinModeIndicator ( byte pin ) : void |
This function will determine which pin mode image should be applied for a given servo pin and apply it to the correct Image object
|
|
loadAnalogControls ( ) : void |
Adds the necessary analog controls to a StackPanel created for the Analog page. This will only be called on navigation from the Connections page.
|
|
loadDigitalControls ( ) : void |
Adds the necessary digital controls to a StackPanel created for the Digital page. This will only be called on navigation from the Connections page.
|
|
loadI2cControls ( ) : void |
Adds the necessary i2c controls to the i2c pivot page, this will only be called the first time this pivot page is loaded
|
|
loadPWMControls ( ) : void |
Adds the necessary analog controls to a StackPanel created for the PWM page. This will only be called on navigation from the Connections page.
|
|
loadServoControls ( ) : void |
Adds the necessary analog controls to a StackPanel created for the PWM page. This will only be called on navigation from the Connections page.
|
protected OnNavigatedTo ( |
||
e | ||
return | void |