percent method

DeviceOutputCommand percent(
  1. double percent
)

Creates a command using a percentage in the inclusive range 0, 1.

For stop-capable outputs, zero is sent as the literal stop value. Position outputs map percentages across their advertised inclusive range.

Implementation

DeviceOutputCommand percent(double percent) {
  return DeviceOutputCommand(_outputType, PercentOrSteps.fromPercent(percent), null);
}