GrovePiCommand Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GroovePi commands to read, write, setup pins and access special sensors Note that those commands are supported in most of the recent firmware with version higher than 1.2.1
public enum GrovePiCommand
type GrovePiCommand =
Public Enum GrovePiCommand
- Inheritance
-
GrovePiCommand
Fields
AnalogRead | 3 | Analog read a pin, equivalent of analogRead on Arduino |
AnalogWrite | 4 | Analog write a pin, equivalent of analogRead on Arduino |
DhtTemp | 40 | DHT22 sensor |
DigitalRead | 1 | Digital read a pin, equivalent of digitalRead on Arduino |
DigitalWrite | 2 | Digital write a pin, equivalent of digitalWrite on Arduino |
FourDigitAllOff | 79 | Entire display off |
FourDigitAllOn | 78 | Entire display on |
FourDigitAnalogRead | 77 | Analog read for n seconds |
FourDigitBrightness | 71 | Set brightness, not visible until next cmd |
FourDigitIndividualDigit | 74 | Set individual digit |
FourDigitIndividualLeds | 75 | Set individual leds of a segment |
FourDigitInit | 70 | Initialize na 4 digit display |
FourDigitScore | 76 | Set left and right values with colon |
FourDigitValue | 72 | Set numeric value without leading zeros |
FourDigitValueZeros | 73 | Set numeric value with leading zeros |
LedBarInitialization | 50 | Initialize the Led bar |
LedBarLevel | 52 | Set level |
LedBarOrientation | 51 | Set orientiation |
LedBarSet | 55 | Set all leds |
LedBarSetOneLed | 53 | Set an individual led |
LedBarToggleOneLed | 54 | Toggle an individual led |
LetBarGet | 56 | Get the led status |
PinMode | 5 | Set the Pin moden, equivalent of pinMode on Arduino |
UltrasonicRead | 7 | Ultrasonic sensor |
Version | 8 | Get the version number |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for