Raspberry Pi と i2c* コマンドでMCP23017の基本的な動作確認
- i2cを有効にする
- SDA,SCLを接続する
- A0~A2 はプルダウン
- /RESETはプルアップ
- i2cのプルアップは不要
| #!/bin/bash | |
| set -eu | |
| # go get -v github.com/mamemomonga/notebook-go/api/mastodon/easydon | |
| easydon -t "[JP監視君] 起動しました。メンテが終了されると推測されると報告されます。" | |
| while true; do | |
| if [ -z "$( curl --verbose https://mstdn.jp/ 2>&1 | grep 'location: https://mastodon.cloud/@dsno' )" ]; then | |
| easydon -t "[JP監視君] https://mstdn.jp/ のステータスが変わりました" | |
| fi |
Raspberry Pi 3 config.txt
Raspbianには /boot/config.txt, ARM64のUbuntuとDebian Busterは /boot/firmware/config.txt
# Pi 3B + RaspbianでUARTを有効にする
dtoverlay=pi3-miniuart-bt
# uartを有効にする(arm64用?)
TARGET_PART=/dev/sda1
mkfs.ext4 $TARGET_PART
tune2fs -o journal_data_writeback $TARGET_PART
tune2fs -O ^has_journal $TARGET_PART
gsettings set org.gnome.desktop.media-handling automount false
https://askubuntu.com/questions/89244/how-to-disable-automount-in-nautiluss-preferences
Raspberry Pi3専用
https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-04-09/
多分これが最終版
MiFA A1 Bluetoothでの利用は多くのレビューがあるので、ここではとくにMicroSDに焦点を絞って調査する。
接続したストレージデバイスのデバイス名を確認する
$ lsblk -o NAME,SIZE,VENDOR,MODEL
進捗を確認しながらディスクイメージを書き込む
$ sudo dd if=IMAGEFILE of=DEVICE bs=64k oflag=dsync status=progress
パーティションを含むイメージファイルのループバックマウント