pub fn ring_range(&mut self, n: usize, start_offset: usize, end_offset: usize, intensity: u32) {
        if self.device_type != MonomeDeviceType::Arc {
            error!("Called arc method on something that is not an arc.");
            return;
        }
        let mut args = Vec::with_capacity(4);
        args.push(OscType::Int(n as i32));
        args.push(OscType::Int(start_offset as i32));
        args.push(OscType::Int(end_offset as i32));
        args.push(OscType::Int(intensity as i32));

        self.send("/ring/range", args);
    }
/// Set a range of led to a particular intensity.
///
/// # Arguments
///
/// - `n` - the encoder to set the leds on, 0-indexed.
/// - `start_offset` - the encoder to start setting the led from, 0-indexed, modulo 64.
/// - `end_offset` - the encoder to end setting the led at 0-indexed, inclusive, modulo 64.
/// - `intensity` - the intensity of the leds: 0 being off, 15 full brightness.
///
/// # Example
///
/// On an arc, lit up halves:
///
/// ```no_run
/// use monome::Monome;
/// let mut monome = Monome::new("/prefix").unwrap();
/// monome.ring_range(0, 0, 32, 15);
/// monome.ring_range(1, 32, 64, 15);
/// monome.ring_range(2, 16, 48, 15);
/// monome.ring_range(3, 48, 16, 15);
/// ```
Set a range of led to a particular intensity.
Set a range of led to a particular intensity .
pub fn ring_range(&mut self, n: usize, start_offset: usize, end_offset: usize, intensity: u32) {
        if self.device_type != MonomeDeviceType::Arc {
            error!("Called arc method on something that is not an arc.");
            return;
        }
        let mut args = Vec::with_capacity(4);
        args.push(OscType::Int(n as i32));
        args.push(OscType::Int(start_offset as i32));
        args.push(OscType::Int(end_offset as i32));
        args.push(OscType::Int(intensity as i32));
        self.send("/ring/range", args);
    }
pub fn ring_range ( & mut self , n : usize , start_offset : usize , end_offset : usize , intensity : u32 ) { if self . device_type != MonomeDeviceType :: Arc { error ! ( " " ) ; return ; } let mut args = Vec :: with_capacity ( 4 ) ; args . push ( OscType :: Int ( n as i32 ) ) ; args . push ( OscType :: Int ( start_offset as i32 ) ) ; args . push ( OscType :: Int ( end_offset as i32 ) ) ; args . push ( OscType :: Int ( intensity as i32 ) ) ; self . send ( " " , args ) ; }
Set a range of led to a particular intensity.
Set a range of led to a particular intensity .
&mut self
n
usize
start_offset
usize
end_offset
usize
intensity
u32
&mut self
n
usize
the encoder to set the leds on, 0-indexed.
the encoder to set the leds on 0 - indexed .
start_offset
usize
the encoder to start setting the led from, 0-indexed, modulo 64.
the encoder to start setting the led from 0 - indexed modulo 64 .
end_offset
usize
the encoder to end setting the led at 0-indexed, inclusive, modulo 64.
the encoder to end setting the led at 0 - indexed inclusive modulo 64 .
intensity
u32
the intensity of the leds: 0 being off, 15 full brightness.
the intensity of the leds : 0 being off 15 full brightness .
example
On an arc, lit up halves.


On an arc lit up halves .