Skip to content

Instantly share code, notes, and snippets.

Avatar

Frederick Zhang Frederick888

View GitHub Profile
@Frederick888
Frederick888 / gpio_read
Created Apr 10, 2018
Read mode/value of a specific pin using WiringPi GPIO utility
View gpio_read
#!/bin/bash
usage() {
>&2 printf "Usage: $0 -n <phy|wpi> [-p <int>] [-f <mode|value>]\n"
>&2 printf "\t-n\tNumbering rule, physical or wPi\n"
>&2 printf "\t-p\tPin number\n"
>&2 printf "\t-f\tField to read\n"
exit 1
}
View gist:82b50aedc3a9d67bc5d43ff345750e26
bootstrap
================
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
cmake 0.1.25 0.1.26 0.1.26 Normal ---
filetime 0.1.10 0.1.12 0.1.12 Normal ---
gcc 0.3.54 Removed Removed Normal ---
getopts 0.2.14 0.2.15 0.2.15 Normal ---
itoa 0.3.3 0.3.4 0.3.4 Normal ---
libc 0.2.30 0.2.31 0.2.31 Normal ---
@Frederick888
Frederick888 / Cargo.lock
Last active Aug 14, 2017
Example files for cargo-outdated
View Cargo.lock
[root]
name = "hello_world"
version = "0.1.0"
dependencies = [
"clap 2.20.0 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 1.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
"pkg-config 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
"term 0.4.5 (registry+https://github.com/rust-lang/crates.io-index)",
]
You can’t perform that action at this time.