Chromebook で Arduino IDE を使う方法です。
Asus C434TA で確認しました。
1. ダウンロード
Downloads
arduino-ide_2.3.6_Linux_64bit.zip
をダウンロードします。
2. 解凍
unzip arduino-ide_2.3.6_Linux_64bit.zip
3. 必要なライブラリーのインストール
sudo apt install libnss3
4. 実行
./arduino-ide
エラーメッセージ
Serial port not selected
次のコマンドを実行
sudo usermod -a -G dialout uchida
USBケーブルで ArduinoUno と接続したところ
テスト用プログラム
hello_world.ino
// ---------------------------------------------------------------------
/*
hello_world.ino
Jan/08/2023
*/
// ---------------------------------------------------------------------
int count = 0;
void setup()
{
Serial.begin(19200);
delay(1000);
Serial.println("*** start ***");
delay(500);
Serial.println("*** setup *** aaa ***");
delay(500);
Serial.println("*** setup *** bbb ***");
delay(500);
Serial.println("*** setup *** ccc ***");
}
// ---------------------------------------------------------------------
void loop()
{
Serial.println("Hello World! " + String(count));
delay(1000);
Serial.println("Good Morning! " + String(count));
delay(1000);
Serial.println("こんにちは " + String(count));
delay(2000);
count++;
}
// ---------------------------------------------------------------------