reodon
プロフィール
2024/04/21 にアマチュア無線4級を受験 => 合格しました!
hr.icon
IoT
SBCalc
origin
source
discord
begin
end
Arduino 開発環境構築 on Ubuntu
code:shell
$ uname -a
Linux dynabook 5.15.0-101-generic #111~20.04.1-Ubuntu SMP Mon Mar 11 15:44:43 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux $ cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04.6 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.6 LTS"
VERSION_ID="20.04"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal
$ sudo apt install -y arduino
# $ sudo apt install -y arduino-mk arduino-builder
$ sudo usermod -aG dialout whoami # Arduino への書き込み権限をユーザーに付与
$ getent group dialout # ユーザーが dialout グループに追加されたか確認
# reboot or 再ログイン
dialout グループについて
dialout: Full and direct access to serial ports. Members of this group can reconfigure the modem, dial anywhere, etc.
cli がなさそうなので、snap でなく apt 経由
$ snap install arduino --channel=latest/edge
apt にも cli なさそうなので、homebrew (linuxbrew) 経由かマニュアルインストール
$ brew update
$ brew install arduino-cli
scratch
$ sudo snap install s4a
/icons/hr.icon
foo
bar
center
right
attention
pale
code:style.css
.deco-\<, .deco-\> {
position: static; /** overwrite */
display: inline-block;
width: 100%;
}
.deco-\< {
text-align: center;
}
.deco-\> {
text-align: right;
}
.deco-\_ {
visibility: hidden;
}
.deco-\% {
display: inline-block;
padding-top: .5em;
}
.deco-\" {
&::after {
content: " <= いまココ";
font-weight: normal;
}
}
.deco-\~ {
opacity: .3;
}
/*
.deco:has(.deco-|) {
display: grid;
width: 100%;
place-items: center;
span.empty-char-index {
height: 0;
}
}
.deco-\{, .deco-\} {
font-size: 1em;
padding: 0.1em 0.2em 0.1em 0.2em;
border-radius: 0.4em;
margin: auto 0.3em;
display: inline-block;
max-width: calc(100% - 100px);
vertical-align: top;
}
.deco-\{:before {
position: absolute;
margin: 0;
padding: 0;
transform: translateX(-100%) translateY(calc(1em - 80%));
width: 0;
content: "";
border-width: 0 0 0.6em 0.6em;
border-style: solid;
}
.deco-\}:after {
position: absolute;
margin: 0;
padding: 0;
transform: translateY(calc(1em - 80%));
width: 0;
content: "";
border-width: 0 0.6em 0.6em 0;
border-style: solid;
}
.deco-\{ a,
.deco-\} a {
}
.deco-\! {
padding: 0.1em 0.2em 0.1em 0.2em;
}
.deco-\!:before, .deco-\!:after {
}
*/