Hướng Dẫn Nano Every ATmega4808 | ThinaryArduino Demo Serial Monitor
Thông số kỹ thuật:
Ban phát triển Thinary cho Arduino
Bạn có thể mua sản phẩm tại trang web này: https://thinaryelectronic.aliexpress.com
Hoặc tại trang web này: https://www.thegioiic.com/products/arduino-nano-every-atmega4808
1. Mở Arduino IDE -----> File -------> Preferences.
2. Mở trình chỉnh sửa URL.
3. Sao chép URL vào Windows này Tách biệt bằng Enter.
4. Mở Boads Manager, nhập Thinary để tìm. Sau đó cài đặt “Thinary AVR Boards”.
5. Chọn Thinary Nano Every, Chọn mô phỏng đăng ký và cổng, thay vì sử dụng nó giống như các Bo mạch Arduino khác.
Code demo Serial Monitor + Blink LED
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
Serial1.begin(9600);
}
// the loop function runs over and over again forever
void loop() {
Serial1.println("hello");
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(500); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(500); // wait for a second
}
Thư viện/ Library: https://github.com/Thinary/ThinaryArduino
Đăng nhận xét