Bỏ qua nội dung

Lesson 23: Code lock

English

A door that knows the code

  • Hotel safes and office doors open with a PIN: a secret number.
  • Here you type the code in the Serial Monitor and press Send. A servo is the latch: at 0° the door is locked, at 90° it is open.
  • Green means open, red means wrong. Then you make the lock safe against someone who just tries many codes.

Words for this lesson

Word Meaning
PIN a secret number that opens something
latch the small bar that keeps a door shut
parseInt reads the digits you typed and makes one number
== "is equal to?": compares two values
return leave the function now

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP