pub fn all<'a, A>(&mut self, arg: A)
    where
        A: IntoAddrAndArgs<'a, OscType>,
    {
        if self.device_type != MonomeDeviceType::Grid {
            error!("Called grid method on something that is not an grid.");
            return;
        }
        let (frag, arg) = arg.as_addr_frag_and_args();
        self.send(&format!("/grid/led/{}all", frag), vec![arg]);
    }
/// Set all led of the grid to an intensity
///
/// # Arguments
///
/// * `intensity` - either a bool, true for led On or false for led Off, or a number between 0
/// and 16, 0 being led off, and 16 being full led brightness.
///
/// # Example
///
/// On a grid, set all led to medium brightness, then turn it on:
///
/// ```no_run
/// # use monome::Monome;
/// let mut monome = Monome::new("/prefix").unwrap();
/// monome.all(8);
/// monome.all(false);
/// ```
Set all led of the grid to an intensity
Set all led of the grid to an intensity
pub fn all<'a, A>(&mut self, arg: A)
    where
        A: IntoAddrAndArgs<'a, OscType>,
    {
        if self.device_type != MonomeDeviceType::Grid {
            error!("Called grid method on something that is not an grid.");
            return;
        }
        let (frag, arg) = arg.as_addr_frag_and_args();
        self.send(&format!("/grid/led/{}all", frag), vec![arg]);
    }
pub fn all < ' a , A > ( & mut self , arg : A ) where A : IntoAddrAndArgs < ' a , OscType > , { if self . device_type != MonomeDeviceType :: Grid { error ! ( " " ) ; return ; } let ( frag , arg ) = arg . as_addr_frag_and_args ( ) ; self . send ( & format ! ( " " frag ) , vec ! [ arg ] ) ; }
Set all led of the grid to an intensity
Set all led of the grid to an intensity
&mut self
arg
A
&mut self
arg
A
example
On a grid, set all led to medium brightness, then turn it on.


On a grid set all led to medium brightness then turn it on .
use monome::monome;
let mut monome = Monome::new("/prefix").unwrap();
monome.all(8);
monome.all(false);
```
let mut monome = Monome :: new ( " / prefix " ) . unwrap () ; monome . all ( 8 ) ; monome . all ( false ) ; ` ` `