Search Header Logo

Câu hỏi về lập trình Arduino

Authored by Lê Quỳnh

Other

2nd Grade

Used 2+ times

Câu hỏi về lập trình Arduino
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Hoàn thành câu lệnh Arduino sau để thiết lập chế độ cho chân 13 là OUTPUT (chế độ ra) để điều khiển đèn LED: int ledPin = 13; void setup() { ___(1)___(ledPin, OUTPUT); }

(a)  

2.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Hoàn thành câu lệnh Arduino sau để đọc giá trị từ chân Analog A0: int value = __(1)__ (A0);

(a)  

3.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Hoàn thành câu lệnh Arduino sau để xuất mức tín hiệu Analog từ chân Digital hỗ trợ PWM: ___(1)___(ledPin, 128);

(a)  

4.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Điền dữ liệu phù hợp để khai báo sensorPin có giá trị là 7 _____(1)_____sensorPin = 7;

(a)  

5.

FILL IN THE BLANKS QUESTION

1 min • 1 pt

Gỉa sử có một LED đơn được nối với chân số 7 của Arrduino. Led này sáng khi tín hiệu tại chân 13 ở mức cao. Hãy hoàn thành các câu lệnh Arduino sau để bật LED sáng: int ledPin = 7; void loop() { _(1)_(ledPin, HIGH); delay(1000); } _______digitalWrite___

(a)  

6.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

Hoàn thành câu lệnh trong hàm setup() dưới đây để khởi động Serial Monitor với tốc độ 115200 baud: void setup() { Serial. (a)   (115200); while (!Serial) { ; } }

7.

FILL IN THE BLANKS QUESTION

30 sec • 1 pt

Hoàn thành đoạn mã sau để kiểm tra và gửi thông báo "Đang kết nối" về trạng thái WiFi của ESP8266: while (WiFi.status() != WL_CONNECTED) { delay(500); ___(1)___.print("Đang kết nối"); }

(a)  

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?