Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? この記事はPythonその2 Advent Calendar 2019の2日目です。1日目は@ssh-22さんのre.subを使った高度な文字列置換でした。 Arduino, Raspberry Pi の誕生によって急速にエコシステムが整ってきているIoT界隈ですが、Raspberry Pi は Python で実装していけるもののちょっとした電子制御には Arduino の方が圧倒的に手軽に利用できます。 とはいえ Arduino 言語(C/C++もどき)ではなく、使い慣れた Python で書きたいという方もいらっしゃるのではないで