gpioOutputDriverModes static method
Implementation
static MraaGpioOutputDriverMode gpioOutputDriverModes(int mode) {
if (byCode.isEmpty) {
for (final mode in MraaGpioOutputDriverMode.values) {
byCode[mode.code] = mode;
}
}
final ret = byCode.containsKey(mode)
? byCode[mode]
: MraaGpioOutputDriverMode.unknown;
return ret!;
}