Skip to content

Commit 29f6bfa

Browse files
committed
0.6.5 AS5600
1 parent 4c664fa commit 29f6bfa

File tree

30 files changed

+121
-35
lines changed

30 files changed

+121
-35
lines changed

libraries/AS5600/AS5600.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//
22
// FILE: AS56000.cpp
33
// AUTHOR: Rob Tillaart
4-
// VERSION: 0.6.4
4+
// VERSION: 0.6.5
55
// PURPOSE: Arduino library for AS5600 magnetic rotation meter
66
// DATE: 2022-05-28
77
// URL: https://github.com/RobTillaart/AS5600

libraries/AS5600/AS5600.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// FILE: AS5600.h
44
// AUTHOR: Rob Tillaart
5-
// VERSION: 0.6.4
5+
// VERSION: 0.6.5
66
// PURPOSE: Arduino library for AS5600 magnetic rotation meter
77
// DATE: 2022-05-28
88
// URL: https://github.com/RobTillaart/AS5600
@@ -12,7 +12,7 @@
1212
#include "Wire.h"
1313

1414

15-
#define AS5600_LIB_VERSION (F("0.6.4"))
15+
#define AS5600_LIB_VERSION (F("0.6.5"))
1616

1717

1818
// default addresses

libraries/AS5600/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

77

8+
## [0.6.5] - 2025-03-13
9+
- update examples - added while(!Serial);
10+
- minor edits.
11+
812
## [0.6.4] - 2024-10-09
913
- fix #67, improve performance **getCumulativePosition()** and **getAngularSpeed()**
1014
- kudos to Chris-42

libraries/AS5600/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2024 Rob Tillaart
3+
Copyright (c) 2022-2025 Rob Tillaart
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

libraries/AS5600/examples/AS5600L_set_address/AS5600L_set_address.ino

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,19 @@
1111

1212
#include "AS5600.h"
1313

14-
14+
// Uncomment the line according to your sensor type
1515
AS5600L ASL; // use default Wire
1616
// AS5600 ASL; // use default Wire
1717

1818

1919
void setup()
2020
{
21+
while(!Serial);
2122
Serial.begin(115200);
2223
Serial.println(__FILE__);
2324
Serial.print("AS5600_LIB_VERSION: ");
2425
Serial.println(AS5600_LIB_VERSION);
26+
Serial.println();
2527

2628
Wire.begin();
2729

libraries/AS5600/examples/AS5600_I2C_frequency/AS5600_I2C_frequency.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#include "AS5600.h"
1313

1414

15+
// Uncomment the line according to your sensor type
1516
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719
uint32_t clk = 0;
1820

@@ -21,10 +23,12 @@ uint32_t start, stop;
2123

2224
void setup()
2325
{
26+
while(!Serial);
2427
Serial.begin(115200);
2528
Serial.println(__FILE__);
2629
Serial.print("AS5600_LIB_VERSION: ");
2730
Serial.println(AS5600_LIB_VERSION);
31+
Serial.println();
2832

2933
Wire.begin();
3034

libraries/AS5600/examples/AS5600_angular_speed/AS5600_angular_speed.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15+
// Uncomment the line according to your sensor type
1516
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.begin();
2630

libraries/AS5600/examples/AS5600_angular_speed_RPM/AS5600_angular_speed_RPM.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15-
AS5600 as5600; // use default Wire
15+
// Uncomment the line according to your sensor type
16+
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.begin();
2630

libraries/AS5600/examples/AS5600_burn_conf_mang/AS5600_burn_conf_mang.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@
2222
#include "AS5600.h"
2323

2424

25-
AS5600 as5600; // use default Wire
26-
// AS5600L as5600;
25+
// Uncomment the line according to your sensor type
26+
AS5600L as5600; // use default Wire
27+
// AS5600 as5600; // use default Wire
2728

2829

2930
void setup()
3031
{
32+
while(!Serial);
3133
Serial.begin(115200);
3234
Serial.println(__FILE__);
3335
Serial.print("AS5600_LIB_VERSION: ");
3436
Serial.println(AS5600_LIB_VERSION);
37+
Serial.println();
3538

3639
Wire.begin();
3740

libraries/AS5600/examples/AS5600_burn_zpos/AS5600_burn_zpos.ino

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,19 @@
2222
#include "AS5600.h"
2323

2424

25-
AS5600 as5600; // use default Wire
26-
// AS5600L as5600;
25+
// Uncomment the line according to your sensor type
26+
AS5600L as5600; // use default Wire
27+
// AS5600 as5600; // use default Wire
2728

2829

2930
void setup()
3031
{
32+
while(!Serial);
3133
Serial.begin(115200);
3234
Serial.println(__FILE__);
3335
Serial.print("AS5600_LIB_VERSION: ");
3436
Serial.println(AS5600_LIB_VERSION);
37+
Serial.println();
3538

3639
Wire.begin();
3740

libraries/AS5600/examples/AS5600_demo/AS5600_demo.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15+
// Uncomment the line according to your sensor type
1516
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.begin();
2630

libraries/AS5600/examples/AS5600_demo_ESP32/AS5600_demo_ESP32.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15+
// Uncomment the line according to your sensor type
1516
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.begin(14, 15);
2630

libraries/AS5600/examples/AS5600_demo_RP2040/AS5600_demo_RP2040.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15+
// Uncomment the line according to your sensor type
1516
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.setSDA(14);
2630
Wire.setSCL(15);

libraries/AS5600/examples/AS5600_demo_STM32/AS5600_demo_STM32.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,19 @@
1414
#include "AS5600.h"
1515

1616

17+
// Uncomment the line according to your sensor type
1718
AS5600L as5600; // use default Wire
19+
// AS5600 as5600; // use default Wire
1820

1921

2022
void setup()
2123
{
24+
while(!Serial);
2225
Serial.begin(115200);
2326
Serial.println(__FILE__);
2427
Serial.print("AS5600_LIB_VERSION: ");
2528
Serial.println(AS5600_LIB_VERSION);
29+
Serial.println();
2630

2731
Wire.setSDA(14);
2832
Wire.setSCL(15);

libraries/AS5600/examples/AS5600_demo_offset/AS5600_demo_offset.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15-
// select right class.
16-
// AS5600 as5600; // use default Wire
15+
// Uncomment the line according to your sensor type
1716
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1818

1919

2020
void setup()
2121
{
22+
while(!Serial);
2223
Serial.begin(115200);
2324
Serial.println(__FILE__);
2425
Serial.print("AS5600_LIB_VERSION: ");
2526
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2628

2729
Wire.begin();
2830

libraries/AS5600/examples/AS5600_demo_radians/AS5600_demo_radians.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15-
AS5600 as5600; // use default Wire
15+
// Uncomment the line according to your sensor type
16+
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.begin();
2630

libraries/AS5600/examples/AS5600_demo_software_direction/AS5600_demo_software_direction.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,20 @@
1414
#include "AS5600.h"
1515

1616

17-
AS5600 as5600; // use default Wire
17+
// Uncomment the line according to your sensor type
18+
AS5600L as5600; // use default Wire
19+
// AS5600 as5600; // use default Wire
1820

1921
uint8_t counter = 0;
2022

2123
void setup()
2224
{
25+
while(!Serial);
2326
Serial.begin(115200);
2427
Serial.println(__FILE__);
2528
Serial.print("AS5600_LIB_VERSION: ");
2629
Serial.println(AS5600_LIB_VERSION);
30+
Serial.println();
2731

2832
Wire.begin();
2933

libraries/AS5600/examples/AS5600_demo_status/AS5600_demo_status.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15-
AS5600L as5600(0x40); // use default Wire
15+
// Uncomment the line according to your sensor type
16+
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.begin();
2630

libraries/AS5600/examples/AS5600_demo_two_I2C/AS5600_demo_two_I2C.ino

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,21 @@
1616

1717
#include "AS5600.h"
1818

19-
20-
AS5600 as5600_0(&Wire);
21-
AS5600 as5600_1(&Wire1);
19+
// Uncomment the line according to your sensor type
20+
AS5600L as5600_0(AS5600L_DEFAULT_ADDRESS, &Wire);
21+
AS5600L as5600_1(AS5600L_DEFAULT_ADDRESS, &Wire1);
22+
// AS5600 as5600_0(&Wire);
23+
// AS5600 as5600_1(&Wire1);
2224

2325

2426
void setup()
2527
{
28+
while(!Serial);
2629
Serial.begin(115200);
2730
Serial.println(__FILE__);
2831
Serial.print("AS5600_LIB_VERSION: ");
2932
Serial.println(AS5600_LIB_VERSION);
33+
Serial.println();
3034

3135
Wire.begin();
3236
Wire1.begin();

libraries/AS5600/examples/AS5600_outmode_analog_100/AS5600_outmode_analog_100.ino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,19 @@
1212
#include "AS5600.h"
1313

1414

15-
AS5600 as5600; // use default Wire
15+
// Uncomment the line according to your sensor type
16+
AS5600L as5600; // use default Wire
17+
// AS5600 as5600; // use default Wire
1618

1719

1820
void setup()
1921
{
22+
while(!Serial);
2023
Serial.begin(115200);
2124
Serial.println(__FILE__);
2225
Serial.print("AS5600_LIB_VERSION: ");
2326
Serial.println(AS5600_LIB_VERSION);
27+
Serial.println();
2428

2529
Wire.begin();
2630

0 commit comments

Comments
 (0)