Skip to content

Commit 9ab6ef9

Browse files
authored
Merge pull request #1 from arduino-libraries/v1.0.3
V1.0.4
2 parents 0d401eb + f3ec993 commit 9ab6ef9

File tree

6 files changed

+11
-23
lines changed

6 files changed

+11
-23
lines changed

examples/Accelerometer/Accelerometer.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#include "Arduino_SensorKit.h"
22

3-
SensorKit kit;
4-
53
void setup() {
64
// put your setup code here, to run once:
75
Serial.begin(9600);
86
while(!Serial);
97

10-
kit.begin();
8+
Accelerometer.begin();
119
}
1210

1311
void loop() {
Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
#include "Arduino_SensorKit.h"
22

3-
SensorKit kit;
4-
53
void setup() {
6-
kit.begin();
4+
Oled.begin();
75
}
86

97
void loop() {
108
int random_value = random(0, 1023); //read value from A0
119

12-
Oled.clearBuffer(); // clear the internal memory
13-
Oled.setFont(u8g2_font_ncenB08_tr); // choose a suitable font
14-
Oled.setCursor(0, 10);
15-
Oled.print("Analog Value:"); // write something to the internal memory
16-
Oled.print(random_value); // print random value read from pin A0
17-
Oled.sendBuffer(); // transfer internal memory to the display
10+
Oled.setFont(u8x8_font_chroma48medium8_r);
11+
Oled.setCursor(0, 33);
12+
Oled.print("Temp: ");
13+
Oled.print(random_value);
14+
Oled.print("C");
15+
Oled.refreshDisplay();
1816
delay(1000);
1917
}

examples/Plug_Sketch_Play/Plug_Sketch_Play.ino

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#include "Arduino_SensorKit.h"
22

3-
SensorKit kit;
4-
53
int button = 4;
64
int LED = 6;
75

@@ -10,8 +8,6 @@ void setup() {
108
Serial.begin(9600);
119
while (!Serial);
1210

13-
kit.begin();
14-
1511
pinMode(button , INPUT);
1612
pinMode(LED, OUTPUT);
1713

examples/Pressure_Sensor/Pressure_Sensor.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
#include "Arduino_SensorKit.h"
22

3-
SensorKit kit;
4-
53
void setup() {
64
Serial.begin(9600);
7-
kit.begin();
5+
Pressure.begin();
86
}
97

108
void loop() {

examples/Temp_and_Humidity/Temp_and_Humidity.ino

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
//#define DHTPIN 3 // By default its connected to pin D3, it can be changed, define it before the #include of the library
22
#include "Arduino_SensorKit.h"
33

4-
SensorKit kit;
5-
64
void setup() {
75
Serial.begin(9600);
8-
kit.begin();
6+
Environment.begin();
97
}
108

119
void loop() {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Arduino_Sensorkit
2-
version=1.0.2
2+
version=1.0.3
33
author=Lenard George, Pablo Marquínez
44
maintainer=Arduino <info@arduino.cc>
55
sentence=Arduino Sensor Kit

0 commit comments

Comments
 (0)