https://github.com/garypippi/pippitank
学生の
可能な
制御は
ホスト環境は
※ 両環境、
コンパイル等でarduino-cli、arduino-language-serverを
Neovimで
https://github.com/arduino/arduino-cli
公式ドキュメントに
ここは
設定ファイルの
arduino-cli config initボードまわりの
arduino-cli core update-index手元の
今回は
arduino-cli core install arduino:avrhttps://github.com/arduino/arduino-language-server
こちらも
Neovim側は
https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#arduino_language_server
arduino-language-serverは
スケッチを
ディレクトリ構成例
スケッチの
arduino-cli sketch new examplesketch.yamlの
arduino-cli board attach -p /dev/ttyACM0 -b arduino:avr:uno example/example.inoNeovim側で
オプション指定なし、
vim.lsp.enable('arduino_language_server')コンパイル。
arduino-cli compile exampleアップロード。
arduino-cli upload examplesketch.yamlが
ラズパイ - Arduino連携の
ラズパイに
crossdevを
https://wiki.gentoo.org/wiki/Crossdev
crossdevと
emerge -a crossdev eselect-repositorycrossdevの
eselect repository create crossdevラズパイarm用の
※ gcc等を
crossdev --target arm-linux-gnueabihf言語サーバーは
Neovim側は
https://github.com/neovim/nvim-lspconfig/blob/master/doc/configs.md#clangd
vim.lsp.enable('clangd')レポジトリ直下に.clangdを
CompileFlags:
Add:
- --target=arm-linux-gnueabihf
- -I/usr/arm-linux-gnueabihf/usr/includeprintf("hello\n");だけの
arm-linux-gnueabihf-gcc hello.c -o hellohelloを
楽しい


