Skip to content

Commit 987afca

Browse files
authored
Merge pull request #14 from arduino-libraries/dev
1.1.0 - candidate
2 parents d3bbd70 + bbcddcd commit 987afca

File tree

6 files changed

+318
-94
lines changed

6 files changed

+318
-94
lines changed

examples/modulino/modulino.ino

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
This file is part of the Arduino_Alvik library.
3+
4+
Copyright (c) 2024 Arduino SA
5+
6+
This Source Code Form is subject to the terms of the Mozilla Public
7+
License, v. 2.0. If a copy of the MPL was not distributed with this
8+
file, You can obtain one at http://mozilla.org/MPL/2.0/.
9+
10+
*/
11+
12+
#include "Arduino_Alvik.h"
13+
#include <Modulino.h>
14+
15+
Arduino_Alvik alvik;
16+
ModulinoPixels leds;
17+
18+
19+
void setup() {
20+
alvik.begin();
21+
Modulino.begin(alvik.i2c); // pass here alvik.i2c
22+
leds.begin();
23+
}
24+
25+
void loop() {
26+
for (int i = 0; i < 8; i++) {
27+
leds.clear();
28+
leds.set(i, 255, 0, 0, 100);
29+
leds.show();
30+
delay(100);
31+
}
32+
for (int i = 7; i >= 0; i--) {
33+
leds.clear();
34+
leds.set(i, 255, 0, 0, 100);
35+
leds.show();
36+
delay(100);
37+
}
38+
}

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_Alvik
2-
version=1.0.1
2+
version=1.1.0
33
author=Arduino, Giovanni di Dio Bruno, Lucio Rossi
44
maintainer=Arduino <[email protected]>
55
sentence=Library to code Arduino Alvik robot

0 commit comments

Comments
 (0)