Last active
May 22, 2022 18:06
-
-
Save B45i/d86fb9228f25d6cd2843a554ed891803 to your computer and use it in GitHub Desktop.
Arduino-cli initial setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.cli-config.yml | |
board_manager: | |
additional_urls: | |
- http://arduino.esp8266.com/stable/package_esp8266com_index.json | |
arduino-cli core update-index | |
arduino-cli core install esp8266:esp8266 | |
search by : | |
arduino-cli board listall esp8266 | |
arduino-cli board list | |
arduino-cli sketch new blink | |
echo $'void setup() { | |
pinMode(LED_BUILTIN, OUTPUT); | |
} | |
void loop() { | |
digitalWrite(LED_BUILTIN, HIGH); | |
delay(1000); | |
digitalWrite(LED_BUILTIN, LOW); | |
delay(1000); | |
}' > /home/b45i/Arduino/blink/blink.ino | |
arduino-cli compile --fqbn esp8266:esp8266:d1_mini /home/b45i/Arduino/blink/ | |
arduino-cli upload -p /dev/ttyUSB0 --fqbn esp8266:esp8266:d1_mini /home/b45i/Arduino/blink/ | |
arduino-cli lib search blynk | |
arduino-cli lib install Blynk | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment