- Mac Mini Apple M4 (Sequoia 15.4.1)
- INAV Configurator 8.0.1 (for Mac M series)
- Arduino IDE 2.3.6
INAV Configuratorは、フライトコントローラの設定を行うことができるツール。
#include <Wire.h> | |
void setup() { | |
Serial.begin(115200); | |
Wire.begin(); | |
Serial.println("\nI2C Scanner"); | |
} | |
void loop() { | |
byte error, address; |
https://wiki.archlinux.jp/index.php/Arduino
# sudo pacman -S arduino
# gpasswd -a $USER uucp
# gpasswd -a $USER lock
ログアウトして再ログイン
日本語キーボードのレイアウト設定の永続化 | |
/etc/default/keyboard | |
XKBMODEL="jp106" | |
XKBLAYOUT="jp" |
from PIL import Image | |
import sys | |
import csv | |
import argparse | |
ap = argparse.ArgumentParser() | |
ap.add_argument('-c', help='path to cover image file') | |
ap.add_argument('-s', help='path to secret image file') | |
ap.add_argument('-d', help='path to decode image file') |
from PIL import Image | |
import sys | |
import csv | |
import argparse | |
ap = argparse.ArgumentParser() | |
ap.add_argument('-e', help='path to encode image file') | |
ap.add_argument('-d', help='path to decode csv file') | |
args = ap.parse_args() |
# Reference: | |
# https://blog.finxter.com/how-to-use-rot13-in-python/ | |
import argparse | |
ap = argparse.ArgumentParser() | |
ap.add_argument('arg1', help='plain text') | |
ap.add_argument('-n', help='number of rotation') | |
args = ap.parse_args() | |
cleartxt = args.arg1 |
++ | |