検索
AND検索
OR検索
トップ
|
リロード
|
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
sasada/RaspberryPi/SourceCode をテンプレートにして作成
最新の20件
2024-04-02
wu
FrontPage
2023-11-15
shiraya
2023-11-14
コメント/akita
2023-09-25
akita
2023-05-30
sakamoto
2023-05-28
okamura
2022-11-15
kawamura
2022-11-01
youkaichi
2022-10-02
AutoTicketLinkName
2022-02-17
ibe
2022-02-04
nakagawa
2021-11-09
tanaka
2021-09-08
okawa
2021-08-03
tsuzuki
2021-07-28
takebe
2021-04-01
awazu
2020-12-10
moriya
2020-10-26
inoue
2019-12-18
yoshida
Total:0/Today:0
開始行:
[[sasada/RaspberryPi]]
*IPアドレスの取り出し [#lc35357b]
ipaddr.sh
#!/bin/bash
# IP address
ifconfig eth0 | grep "inet" | awk '{ print $1 }' | cut -...
*IPアドレスをLCDに表示(改良前) [#yb07274a]
i2c-lcd-test.sh
#!/bin/bash
function usage {
echo "Usage: $0 [-ic] [-p pos] message" > /dev/stderr;
exit 1
}
[ $# = 0 ] && usage
while getopts "icp:" flag; do
case $flag in
\?) usage ;;
i) i2cset -y 1 0x3e 0 0x38 0x39 0x14 0x78 0x5e 0x6c i
sleep 0.25
i2cset -y 1 0x3e 0 0x0c 0x01 0x06 i
sleep 0.05
;;
c) i2cset -y 1 0x3e 0 0x01 ;;
p) i2cset -y 1 0x3e 0 $((OPTARG+128)) ;;
esac
done
shift $((OPTIND-1))
[ $# = 0 ] && exit
LANG=C
MSG=`echo -n "$1" | perl -pe '$_=join" ",map{ord }split/...
echo $MSG
i2cset -y 1 0x3e 0x40 $MSG i
*IPアドレスをLCDに表示(改良後) [#ob838ae3]
i2c-lcd-ip.sh
#!/bin/bash
i2cset -y 1 0x3e 0 0x38 0x39 0x14 0x78 0x5e 0x6c i
sleep 0.25
i2cset -y 1 0x3e 0 0x0c 0x01 0x06 i
sleep 0.05
LANG=C
IPMSG="IP Address:"
MSG=`echo -n "$IPMSG" | perl -pe '$_=join" ",map{ord }sp...
echo $MSG
i2cset -y 1 0x3e 0x40 $MSG i
i2cset -y 1 0x3e 0 0xc1
IP=`ifconfig eth0 | grep "inet" | cut -d ":" -f 2 | cut ...
MSG=`echo -n "$IP" | perl -pe '$_=join" ",map{ord }split...
echo $MSG
i2cset -y 1 0x3e 0x40 $MSG i
終了行:
[[sasada/RaspberryPi]]
*IPアドレスの取り出し [#lc35357b]
ipaddr.sh
#!/bin/bash
# IP address
ifconfig eth0 | grep "inet" | awk '{ print $1 }' | cut -...
*IPアドレスをLCDに表示(改良前) [#yb07274a]
i2c-lcd-test.sh
#!/bin/bash
function usage {
echo "Usage: $0 [-ic] [-p pos] message" > /dev/stderr;
exit 1
}
[ $# = 0 ] && usage
while getopts "icp:" flag; do
case $flag in
\?) usage ;;
i) i2cset -y 1 0x3e 0 0x38 0x39 0x14 0x78 0x5e 0x6c i
sleep 0.25
i2cset -y 1 0x3e 0 0x0c 0x01 0x06 i
sleep 0.05
;;
c) i2cset -y 1 0x3e 0 0x01 ;;
p) i2cset -y 1 0x3e 0 $((OPTARG+128)) ;;
esac
done
shift $((OPTIND-1))
[ $# = 0 ] && exit
LANG=C
MSG=`echo -n "$1" | perl -pe '$_=join" ",map{ord }split/...
echo $MSG
i2cset -y 1 0x3e 0x40 $MSG i
*IPアドレスをLCDに表示(改良後) [#ob838ae3]
i2c-lcd-ip.sh
#!/bin/bash
i2cset -y 1 0x3e 0 0x38 0x39 0x14 0x78 0x5e 0x6c i
sleep 0.25
i2cset -y 1 0x3e 0 0x0c 0x01 0x06 i
sleep 0.05
LANG=C
IPMSG="IP Address:"
MSG=`echo -n "$IPMSG" | perl -pe '$_=join" ",map{ord }sp...
echo $MSG
i2cset -y 1 0x3e 0x40 $MSG i
i2cset -y 1 0x3e 0 0xc1
IP=`ifconfig eth0 | grep "inet" | cut -d ":" -f 2 | cut ...
MSG=`echo -n "$IP" | perl -pe '$_=join" ",map{ord }split...
echo $MSG
i2cset -y 1 0x3e 0x40 $MSG i
ページ名: