Bỏ qua nội dung

Lesson 22: Binary counter

English

Numbers made of lights

  • Inside a computer every number is stored in binary: only 0s and 1s, off and on.
  • Four LEDs can show a binary number: each LED is one bit. On is 1, off is 0.
  • First the Arduino counts from 0 to 15 by itself. Then you build a counter with a button.

Words for this lesson

Word Meaning
binary numbers written with only 0 and 1
bit one binary digit: 0 or 1
place value what a digit is worth because of where it is: 1, 2, 4, 8 …
bitRead(n, i) gives bit number i of n (bit 0 is worth 1)

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

IGCSE, A-Level & AP