pub fn ring_set(&mut self, n: usize, index: u32, 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(3);
        args.push(OscType::Int(n as i32));
        args.push(OscType::Int(index as i32));
        args.push(OscType::Int(intensity as i32));

        self.send("/ring/set", args);
    }
/// Set a single led, with intensity, on an Arc.
///
/// # Arguments
///
/// - `n` - the encoder to set a led on, 0-indexed.
/// - `index` - which led to set. 0 is the top led, and goes clockwise. This is modulo 64, so
/// passing in 65 is the second led from the top, going clockwise.
/// - `intensity` - the intensity of the led 0 being off, 15 full brightness.
///
/// # Example
///
/// On an arc, make a circular gradient on the first encoder:
///
/// ```no_run
/// use monome::Monome;
/// let mut monome = Monome::new("/prefix").unwrap();
/// for i in 0..64 {
///   monome.set(0, i, i / 4);
/// }
/// ```
Set a single led, with intensity, on an Arc.
Set a single led with intensity on an Arc .
pub fn ring_set(&mut self, n: usize, index: u32, 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(3);
        args.push(OscType::Int(n as i32));
        args.push(OscType::Int(index as i32));
        args.push(OscType::Int(intensity as i32));
        self.send("/ring/set", args);
    }
pub fn ring_set ( & mut self , n : usize , index : u32 , intensity : u32 ) { if self . device_type != MonomeDeviceType :: Arc { error ! ( " " ) ; return ; } let mut args = Vec :: with_capacity ( 3 ) ; args . push ( OscType :: Int ( n as i32 ) ) ; args . push ( OscType :: Int ( index as i32 ) ) ; args . push ( OscType :: Int ( intensity as i32 ) ) ; self . send ( " " , args ) ; }
Set a single led, with intensity, on an Arc.
Set a single led with intensity on an Arc .
&mut self
n
usize
index
u32
intensity
u32
&mut self
n
usize
the encoder to set a led on, 0-indexed.
the encoder to set a led on 0 - indexed .
index
u32
which led to set. 0 is the top led, and goes clockwise. This is modulo 64, so
passing in 65 is the second led from the top, going clockwise.
which led to set . 0 is the top led and goes clockwise . This is modulo 64 so passing in 65 is the second led from the top going clockwise .
intensity
u32
the intensity of the led 0 being off, 15 full brightness.
the intensity of the led 0 being off 15 full brightness .
example
On an arc, make a circular gradient on the first encoder.


On an arc make a circular gradient on the first encoder .