A simple demonstration library for Arduino, created as an example of proper structure, documentation, and metadata for Arduino/PlatformIO libraries.
| Function | Description |
|---|---|
int add(int a, int b) |
Returns the sum of two numbers. |
const char* info() |
Returns a text string containing the library name and version. |
- In Arduino IDE, add the library to your project as a ZIP file.
- In your sketch, use it like this:
#include <MyFirstLibrary.h>
void setup() {
Serial.begin(9600);
Serial.println(MyFirstLibrary::info());
Serial.println(MyFirstLibrary::add(5, 3));
}
void loop() {}- Name: Petr Vurm
- Website: https://petrvurm.cz
- Email: kontakt@petrvurm.cz
This demonstration library is licensed under the MIT License. For more details, see the LICENSE file.
The library is intended for demonstration and educational purposes. Free use, modification, and distribution are permitted under the terms of the MIT License.