Skip to content

Commit 9dd3143

Browse files
authored
fix RTC Library (#49)
* fix RTC Library * create release
1 parent 0d432ed commit 9dd3143

File tree

6 files changed

+32
-8
lines changed

6 files changed

+32
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Each pull request is validated through checks in CI by trying to install the cur
6565

6666
- Create a branch from master
6767
- Do you work, change, add or delete stuff.
68-
- Remember to update the `arduino/samd.zip` file.
69-
- After changing the `arduino/samd.zip` file, update the `size` and `checksum` properties in the `package_sensebox-dev_index.json`. (`stat -c "%s" arduino/samd.zip` and `shasum -a 256 arduino/samd.zip`)
68+
- Remember to update the `arduino/samd.zip` file. `zip -r -X samd.zip samd `
69+
- After changing the `arduino/samd.zip` file, update the `size` and `checksum` properties in the `package_sensebox-dev_index.json`. (`stat -c "%s" arduino/samd.zip` or `stat -f "%z" samd.zip` and `shasum -a 256 arduino/samd.zip`)
7070
- Commit & push
7171
- If not already open, create a pull request
7272

arduino/samd.zip

18 Bytes
Binary file not shown.

arduino/samd/libraries/RV8523/RV8523.cpp

100755100644
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,20 @@
2424

2525
RV8523::RV8523(void)
2626
{
27-
Wire.begin();
28-
2927
return;
3028
}
3129

3230

3331
//-------------------- Public --------------------
3432

3533

34+
void RV8523::begin(void)
35+
{
36+
Wire.begin(); //init I2C lib
37+
return;
38+
}
39+
40+
3641
void RV8523::start(void)
3742
{
3843
uint8_t val;
@@ -136,7 +141,7 @@ void RV8523::batterySwitchOver(int on) //activate/deactivate battery switch over
136141
Wire.write(byte(0x02)); //control 3
137142
if(on)
138143
{
139-
Wire.write(val & ~0xE0); //battery switchover in standard mode
144+
Wire.write(val & 0b00111111); //battery switchover in standard mode
140145
}
141146
else
142147
{

arduino/samd/libraries/RV8523/RV8523.h

100755100644
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class RV8523
1010
public:
1111
RV8523();
1212

13+
void begin(void);
1314
void start(void);
1415
void stop(void);
1516
void get(uint8_t *sec, uint8_t *min, uint8_t *hour, uint8_t *day, uint8_t *month, uint16_t *year);

package_sensebox-dev_index.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
{
1313
"name": "senseBox SAMD Boards (dependency: Arduino SAMD Boards)",
1414
"architecture": "samd",
15-
"version": "1.4.1",
15+
"version": "1.4.2",
1616
"category": "contributed",
1717
"help": {
1818
"online": "http://www.sensebox.de/go"
1919
},
2020
"url": "http://localhost/arduino/samd.zip",
2121
"archiveFileName": "sensebox-samd-dev.zip",
22-
"size": "1886800",
23-
"checksum": "SHA-256:632258a2fd8f7e83132e6b8f5a246d7d00d49bbce8c54ad9244423a25da522b2",
22+
"size": "1886818",
23+
"checksum": "SHA-256:91a4340bb453cae2069b9c7540bb82e7f0b0479a25a4a13030097d805c11a4ae",
2424
"boards": [
2525
{
2626
"name": "senseBox MCU (SAMD21)"

package_sensebox_index.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@
99
"online": "http://www.sensebox.de"
1010
},
1111
"platforms": [
12+
{
13+
"name": "senseBox SAMD Boards (dependency: Arduino SAMD Boards)",
14+
"architecture": "samd",
15+
"version": "1.4.2",
16+
"category": "contributed",
17+
"help": {
18+
"online": "http://www.sensebox.de/go"
19+
},
20+
"url": "https://github.com/sensebox/senseBoxMCU-core/releases/download/1.4.1/samd.zip",
21+
"archiveFileName": "sensebox-samd-1.4.2.zip",
22+
"size": "1886818",
23+
"checksum": "SHA-256:91a4340bb453cae2069b9c7540bb82e7f0b0479a25a4a13030097d805c11a4ae",
24+
"boards": [
25+
{
26+
"name": "senseBox MCU (SAMD21)"
27+
}
28+
]
29+
},
1230
{
1331
"name": "senseBox SAMD Boards (dependency: Arduino SAMD Boards)",
1432
"architecture": "samd",

0 commit comments

Comments
 (0)