

บทเรียนที่ไม่มีชื่อ
Presentation
•
Computers
•
5th Grade
•
Hard
TORI TORI
Used 1+ times
FREE Resource
1 Slide • 0 Questions
1
By TORI TORI
#include <Keypad.h>
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS]=
{
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = {9,8,7,6};
byte colPins[COLS] = {5,4,3,2};
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
void setup()
{
Serial.begin(9600);
}
void loop()
{
char key = keypad.getKey();
if (key != NO_KEY)
{
Serial.println(key);
}
}
By TORI TORI
#include <Keypad.h>
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS]=
{
{'1','2','3','A'},
{'4','5','6','B'},
{'7','8','9','C'},
{'*','0','#','D'}
};
byte rowPins[ROWS] = {9,8,7,6};
byte colPins[COLS] = {5,4,3,2};
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
void setup()
{
Serial.begin(9600);
}
void loop()
{
char key = keypad.getKey();
if (key != NO_KEY)
{
Serial.println(key);
}
}
Show answer
Auto Play
Slide 1 / 1
SLIDE
Similar Resources on Wayground
5 questions
ch3
Presentation
•
4th Grade
6 questions
Drawing bar graphs.
Presentation
•
5th Grade
6 questions
science
Presentation
•
5th Grade
4 questions
Forces & Energy Transfer
Presentation
•
6th Grade
6 questions
Ringing in the New Year: A3000
Presentation
•
6th Grade
5 questions
Main Idea
Presentation
•
4th Grade
7 questions
Opinion Writing
Presentation
•
4th - 5th Grade
3 questions
Untitled Lesson
Presentation
•
6th Grade
Popular Resources on Wayground
6 questions
Secondary Safety Quiz
Presentation
•
9th - 12th Grade
10 questions
MyPath Diagnostic Overview
Presentation
•
6th - 8th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Adding and Subtracting Decimals
Quiz
•
5th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
21 questions
Lab Safety
Quiz
•
10th Grade