Pages: [1]   Go Down
Author Topic: 4x4 keypad  (Read 722 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey,  i'm completely new to arduino code and i dont have much time to study it, so i need to ask if someone got a code that'll make my 4x4 keypad print it's buttons in Serial.println the examples i have found requires me to use #include, and i'm not sure how that will work when i unplug arduino from the computer and use a batterypack.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 551
Posts: 46240
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
the examples i have found requires me to use #include, and i'm not sure how that will work when i unplug arduino from the computer
#include is a pre-processor directive. It tells the pre-processor to copy the contents of the file at this point in the code. Once that happens, the compiler parses the code, and generates a bunch of object files. Then, the linker is invoked to combine the object files into a hex file. That hex file is uploaded to the Arduino.

When the Arduino executes the code, it does not need to access the PC where the included file was stored.
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 58
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

thanks smiley
Logged

Pages: [1]   Go Up
Jump to: