cupi icon indicating copy to clipboard operation
cupi copied to clipboard

Documentation

Open tafia opened this issue 9 years ago • 3 comments

Is there any documentation?

  • the link in the readme doesn't work
  • when going on docs.rs, there is no comments, only function signatures

I've read the examples, there are parts I don't fully understand.

For instance, is this comment supposed to enlighten the reader about some functionality or has it been put here for debug purpose (I don't know what export does)?

    let cupi = CuPi::new().unwrap();
    let mut pinout = cupi.pin(0).unwrap().high().output();
    //let mut pin = cupi.pin_sys(0).unwrap();
    //pin.export().unwrap();
    //let mut pinout = pin.output().unwrap();

tafia avatar Nov 29 '16 01:11 tafia

Cupi has two GRIO mods. First, it's direct access to GPIO registers over shared memory (super fast) but root is required. Second, over linux GPIO and sysfs interface (any user). We need to export pin to userland. You can read about this approach here. Sorry for the lack of documentation.

inre avatar Dec 14 '16 12:12 inre

Thanks! Do you want to keep the issue open just as a reminder to add more documentation? You can close it else.

tafia avatar Dec 15 '16 01:12 tafia

The link to the docs the readme should point to https://inre.github.io/cupi/cupi/index.html

tinywombat765 avatar Mar 24 '17 19:03 tinywombat765