asked 152k views
4 votes
This is used to include outside libraries in your sketch. This gives the programmer access to a large group of standard C libraries (groups of pre-made functions), and also libraries written especially for Arduino. Which keyword is used for this purpose?

1) #include
2) break
3) void
4) #define

asked
User Obenland
by
8.9k points

1 Answer

3 votes

Final answer:

The keyword for including libraries in an Arduino sketch is '#include', which enables the usage of standard C libraries and Arduino-specific libraries for extended functionality in Arduino projects.

Step-by-step explanation:

The keyword used to include outside libraries in an Arduino sketch is #include. This preprocessor directive allows the programmer to import standard C libraries or libraries specifically created for Arduino, which provide pre-made functions to add functionality to your code without having to write everything from scratch. For instance, including the library for controlling an LCD display might look like: #include <LiquidCrystal.h>. By doing this, you gain access to the functions that help you easily control the LCD with your Arduino.

answered
User Paparush
by
8.2k points