package
0.0.0-20240917142712-10102bbdc223
Repository: https://github.com/shanghuiyang/rpi-projects.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
No description provided by the author
DelayMin ...
DelayMs ...
DelaySec ...
DelayUs ...
GetIP ...
GetVolume gets the volume using amixer
command line: amixer -M get PCM
output:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Simple mixer control 'PCM',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 255
Mono: Playback 115 [45%] [-127.55dB] [on]
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/.
IncludedAngle caculates the included angle betweet fromAngle to toAngle.
NewEmail ...
NewGPSLogger ...
No description provided by the author
No description provided by the author
NewStream ...
PlayMp3 play mp3 audio using mpg123 you need to install mpg123 first.
PlayWav plays wav audio using aplay.
Record records voice using arecord you need to setup a micro-phone and set it as default device arecord usage: -D: device, use commond "$arecord -l" for viewing card number and device number like 1,0 -d 3: 3 seconds -t wav: wav type -r 16000: Rate 16000 Hz -c 1: 1 channel -f S16_LE: Signed 16 bit Little Endian.
Reverse reverses the string.
SetVolume sets the volume using amixer.
StartMotion start the Motion Service if config file doesn't be provided, the default config file will be used the default config file locates /etc/motion/motion.conf.
StopMotion ...
StopMp3 stops to play mp3.
StopWav stops to play wav.
WaitQuit ...
# Structs
Email ...
EmailConfig ...
EmailInfo ...
GPSLogger ...
No description provided by the author
No description provided by the author
Point is GPS point.
Streamer ...
# Interfaces
No description provided by the author
# Type aliases
Mode ...