beep-evdev 0.6.0

Beep the PC speaker using evdev
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Beep the default PC speaker.

use beep_evdev::{Beep, Note, DEFAULT_FILE};
use evdev::Device;

fn main() {
    Device::open(DEFAULT_FILE)
        .unwrap()
        .play([Note::default()])
        .unwrap();
}