Skip to content

Commit c4ec920

Browse files
authored
Merge pull request #22 from dido18/patch-1
docs: Update the library name to include the Arduino prefix
2 parents e9e816a + 87ba2ac commit c4ec920

File tree

18 files changed

+35
-34
lines changed

18 files changed

+35
-34
lines changed

docs/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The **Modulino** library supports the following hardware modules:
2525
To initialize the **Modulino** library, include the header file and call the `begin()` method. This will set up the I2C communication and prepare the library for use with the modules.
2626

2727
```cpp
28-
#include <Modulino.h>
28+
#include <Arduino_Modulino.h>
2929
Modulino.begin(); // Initialize the Modulino library
3030
```
3131

@@ -124,7 +124,7 @@ Here’s an example of how to use some Modulino in a program:
124124
// This sketch demonstrates how to use the Modulino library to control buttons, LEDs, and a buzzer.
125125
// It listens for a button press (Button A), turns on the LED 0, and plays a sound through the buzzer when pressed.
126126

127-
#include <Modulino.h>
127+
#include <Arduino_Modulino.h>
128128

129129
ModulinoButtons buttons; // Declare a Buttons Modulino
130130
ModulinoPixels leds; // Declare a Pixels Modulino

examples/Modulino_Buttons/Button2Integration/Button2Integration.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* SPDX-License-Identifier: MPL-2.0
88
*/
99

10-
#include "Modulino.h"
10+
#include <Arduino_Modulino.h>
1111
#include "Button2.h"
1212

1313
Button2 button;

examples/Modulino_Buttons/Buttons_Basic/Buttons_Basic.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Modulino Buttons - Basic
33
*
4-
* This example code is in the public domain.
4+
* This example code is in the public domain.
55
* Copyright (c) 2025 Arduino
66
* SPDX-License-Identifier: MPL-2.0
77
*/
88

9-
#include <Modulino.h>
9+
#include <Arduino_Modulino.h>
1010

1111
// Create a ModulinoButtons object
1212
ModulinoButtons buttons;
@@ -45,4 +45,4 @@ void loop() {
4545
// Update the LEDs above buttons, depending on the variables value
4646
buttons.setLeds(button_a, button_b, button_c);
4747
}
48-
}
48+
}

examples/Modulino_Buzzer/Buzzer_Basic/Buzzer_Basic.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Modulino Buzzer - Basic
33
*
4-
* This example code is in the public domain.
4+
* This example code is in the public domain.
55
* Copyright (c) 2025 Arduino
66
* SPDX-License-Identifier: MPL-2.0
77
*/
88

9-
#include <Modulino.h>
9+
#include <Arduino_Modulino.h>
1010

1111
// Create a ModulinoBuzzer object
1212
ModulinoBuzzer buzzer;
@@ -30,4 +30,4 @@ void loop(){
3030
buzzer.tone(0, duration);
3131
delay(1000);
3232

33-
}
33+
}

examples/Modulino_Buzzer/Simple_melody/Simple_melody.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Modulino Buzzer - Simple melody
33
*
4-
* This example code is in the public domain.
4+
* This example code is in the public domain.
55
* Copyright (c) 2025 Arduino
66
* SPDX-License-Identifier: MPL-2.0
77
*/
88

9-
#include <Modulino.h>
9+
#include <Arduino_Modulino.h>
1010

1111
// Create a ModulinoBuzzer object
1212
ModulinoBuzzer buzzer;
@@ -31,4 +31,4 @@ void loop() {
3131
delay(250);
3232

3333
}
34-
}
34+
}

examples/Modulino_Buzzer/Theremin/Theremin.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "Modulino.h"
1+
#include <Arduino_Modulino.h>
22

33
ModulinoBuzzer buzzer;
44
ModulinoDistance distance;

examples/Modulino_Distance/Distance_Basic/Distance_Basic.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: MPL-2.0
77
*/
88

9-
#include "Modulino.h"
9+
#include <Arduino_Modulino.h>
1010

1111
// Create a ModulinoDistance object
1212
ModulinoDistance distance;

examples/Modulino_Knob/Encoder_Setter/Encoder_Setter.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: MPL-2.0
77
*/
88

9-
#include "Modulino.h"
9+
#include <Arduino_Modulino.h>
1010

1111
// Create objects for the modules
1212
ModulinoKnob encoder;

examples/Modulino_Knob/Knob_Basic/Knob_Basic.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Modulino Knob - Basic
33
*
4-
* This example code is in the public domain.
4+
* This example code is in the public domain.
55
* Copyright (c) 2025 Arduino
66
* SPDX-License-Identifier: MPL-2.0
77
*/
88

9-
#include <Modulino.h>
9+
#include <Arduino_Modulino.h>
1010

1111
// Create a ModulinoKnob object
1212
ModulinoKnob knob;
@@ -41,4 +41,4 @@ void loop(){
4141
}
4242

4343
delay(10); // optional small delay to reduce serial spam
44-
}
44+
}

examples/Modulino_Movement/Movement_Basic/Movement_Basic.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: MPL-2.0
77
*/
88

9-
#include "Modulino.h"
9+
#include <Arduino_Modulino.h>
1010

1111
// Create a ModulinoMovement
1212
ModulinoMovement movement;

0 commit comments

Comments
 (0)