Skip to content

Commit 59ebe4f

Browse files
baorepoPillar1989
authored andcommitted
2 parents 540ef40 + 59f96fa commit 59ebe4f

File tree

10 files changed

+58
-58
lines changed

10 files changed

+58
-58
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build:
2+
tags:
3+
- nas
4+
script:
5+
- wget -c https://files.seeedstudio.com/arduino/seeed-arduino-ci.sh
6+
- chmod +x seeed-arduino-ci.sh
7+
- bash $PWD/seeed-arduino-ci.sh test
8+

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11

22
language: generic
3+
dist: bionic
34
sudo: false
45
cache:
56
directories:

LICENSE

Lines changed: 0 additions & 29 deletions
This file was deleted.

License.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2013 Seeed Technology Inc.
3+
Copyright (c) 2020 Seeed Technology
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -9,13 +9,13 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
copies of the Software, and to permit persons to whom the Software is
1010
furnished to do so, subject to the following conditions:
1111

12-
The above copyright notice and this permission notice shall be included in
13-
all copies or substantial portions of the Software.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21-
THE SOFTWARE.
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AS5600
1+
# AS5600 [![Build Status](https://travis-ci.com/Seeed-Studio/Seeed_Arduino_AS5600.svg?branch=master)](https://travis-ci.com/Seeed-Studio/Seeed_Arduino_AS5600)
22
AS5600 12-bits Absolute Magnetic Encoder
33

44
Features:

examples/fullFunction/fullFunction.ino

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ void loop()
192192

193193
if (SERIAL.available() > 0)
194194
{
195-
char incomingByteBuffer[2] = {0};
195+
char incomingByteBuffer[5] = {0};
196196
char incomingByte = 0;
197197

198198
incomingByteBuffer[0] = NULL;
@@ -304,33 +304,13 @@ void loop()
304304

305305
case 96:
306306
{
307-
SERIAL.println ("BURN ANGLE (Y/N)?");
308-
309-
char answer;
310-
311-
SERIAL.readBytes(&answer,1);
312-
313-
if((answer == 'y') || (answer == 'Y'))
314-
{
315307
lastResponse = burnAngle();
316-
}
317-
else
318-
lastResponse = "Brun canceled";
319308
}
320309
break;
321310

322311
case 98:
323312
{
324-
SERIAL.println ("BURN MAX ANGLE AND CONFIG (Y/N)?");
325-
326-
char answer = SERIAL.read();
327-
328-
if((answer == 'y') || (answer == 'Y'))
329-
{
330313
lastResponse = burnMaxAngleAndConfig();
331-
}
332-
else
333-
lastResponse = "Brun canceled";
334314
}
335315
break;
336316

@@ -343,4 +323,4 @@ void loop()
343323
/*end of menu processing */
344324
printMenu();
345325
}
346-
}
326+
}

keywords.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
#######################################
3+
# Syntax Coloring Map For
4+
#######################################
5+
6+
#######################################
7+
# Datatypes (KEYWORD1)
8+
#######################################
9+
10+
#######################################
11+
# Methods and Functions (KEYWORD2)
12+
#######################################
13+
setMaxAngle KEYWORD2
14+
getMaxAngle KEYWORD2
15+
setStartPosition KEYWORD2
16+
getStartPosition KEYWORD2
17+
setEndPosition KEYWORD2
18+
getEndPosition KEYWORD2
19+
getRawAngle KEYWORD2
20+
getScaledAngle KEYWORD2
21+
detectMagnet KEYWORD2
22+
getMagnetStrength KEYWORD2
23+
getAgc KEYWORD2
24+
getMagnitude KEYWORD2
25+
getBurnCount KEYWORD2
26+
burnAngle KEYWORD2
27+
burnMaxAngleAndConfig KEYWORD2
28+
setOutPut KEYWORD2
29+
#######################################
30+
# Constants (LITERAL1)
31+
#######################################

library.properties

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name=Grove - AS5600
2+
version=1.0.0
3+
author=Seeed Studio
4+
maintainer=Seeed Studio <techsupport@seeed.cc>
5+
sentence=Library for Grove - AS5600
6+
paragraph=An Arduino library for AS5600 12-bits Absolute Magnetic Encoder
7+
category=Sensors
8+
url=
9+
architectures=*
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)