mirror of
https://github.com/cccb/servicepoint.git
synced 2025-01-18 18:10:14 +01:00
add crate doc to examples
This commit is contained in:
parent
e135bd60a7
commit
daaa31a276
|
@ -12,4 +12,6 @@ version = "0.5.0"
|
||||||
|
|
||||||
[workspace.lints.rust]
|
[workspace.lints.rust]
|
||||||
missing-docs = "warn"
|
missing-docs = "warn"
|
||||||
|
|
||||||
|
[workspace.lints.clippy]
|
||||||
missing-docs-in-crate-items = "warn"
|
missing-docs-in-crate-items = "warn"
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! An example for how to send text to the display.
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
||||||
use servicepoint::{ByteGrid, Command, Connection, Grid, Origin};
|
use servicepoint::{ByteGrid, Command, Connection, Grid, Origin};
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! A simple game of life implementation to show how to render graphics to the display.
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
//! A simple example for how to send pixel data to the display.
|
||||||
|
|
||||||
use std::thread;
|
use std::thread;
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
//! A simple example for how to set brightnesses for tiles on the screen.
|
||||||
|
//! Continuously changes the tiles in a random window to random brightnesses.
|
||||||
|
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
//! An example on how to modify the image on screen without knowing the current content.
|
||||||
use std::thread;
|
use std::thread;
|
||||||
use std::time::Duration;
|
use std::time::Duration;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue