mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.2.5 DS28CM00
This commit is contained in:
parent
49d8d69ab4
commit
61e6901ec1
@ -1,3 +1,18 @@
|
||||
platforms:
|
||||
rpipico:
|
||||
board: rp2040:rp2040:rpipico
|
||||
package: rp2040:rp2040
|
||||
gcc:
|
||||
features:
|
||||
defines:
|
||||
- ARDUINO_ARCH_RP2040
|
||||
warnings:
|
||||
flags:
|
||||
|
||||
packages:
|
||||
rp2040:rp2040:
|
||||
url: https://github.com/earlephilhower/arduino-pico/releases/download/global/package_rp2040_index.json
|
||||
|
||||
compile:
|
||||
# Choosing to run compilation tests on 2 different Arduino platforms
|
||||
platforms:
|
||||
@ -8,4 +23,6 @@ compile:
|
||||
- m4
|
||||
- esp32
|
||||
# - esp8266
|
||||
# - mega2560
|
||||
# - mega2560
|
||||
- rpipico
|
||||
|
||||
|
46
libraries/DS28CM00/CHANGELOG.md
Normal file
46
libraries/DS28CM00/CHANGELOG.md
Normal file
@ -0,0 +1,46 @@
|
||||
# Change Log DS28CM00
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.2.5] - 2022-11.02
|
||||
- add changelog.md
|
||||
- add rp2040 to build-CI
|
||||
- update readme.md
|
||||
|
||||
|
||||
## [0.2.4] - 2021-12-17
|
||||
- update library.json
|
||||
- update license
|
||||
- add isConnected()
|
||||
- minor edits
|
||||
|
||||
## [0.2.3] - 2021-10-26
|
||||
- update build-CI
|
||||
- add default Wire in constructor
|
||||
|
||||
## [0.2.2] - 2020-12-20
|
||||
- add Arduino-CI + unit test
|
||||
|
||||
## [0.2.1] - 2020-06-07
|
||||
- fix library.json
|
||||
|
||||
## [0.2.0] - 2020-04-11
|
||||
- refactor
|
||||
- add #pragma once
|
||||
- multiple Wire
|
||||
- ESP support (start)
|
||||
|
||||
----
|
||||
|
||||
## [0.1.0] - 2017-07-15- initial version
|
||||
|
||||
## [0.1.00]
|
||||
- initial version
|
||||
|
||||
|
||||
|
||||
|
@ -2,21 +2,15 @@
|
||||
// FILE: DS28CM00.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: Library for the DS28CM00 unique identification chip.
|
||||
// VERSION: 0.2.4
|
||||
// VERSION: 0.2.5
|
||||
// URL: https://github.com/RobTillaart/DS28CM00
|
||||
//
|
||||
// HISTORY:
|
||||
// 0.1.0 2017-07-15 initial version
|
||||
// 0.2.0 2020-04-11 refactor, #pragma once, ESP support, multiple Wire, ESP support (start)
|
||||
// 0.2.1 2020-06-07 fix library.json
|
||||
// 0.2.2 2020-12-20 add Arduino-CI + unit test
|
||||
// 0.2.3 2021-10-26 update build-CI + default Wire in constructor
|
||||
// 0.2.4 2021-12-17 update library.json, license, minor edits
|
||||
// added isConnected()
|
||||
// HISTORY: see changelog.md
|
||||
|
||||
|
||||
#include "DS28CM00.h"
|
||||
|
||||
|
||||
#define DS28CM00_DEVICEADDRESS 0x50
|
||||
#define DS28CM00_UIDREGISTER 0x00
|
||||
#define DS28CM00_CONTROLREGISTER 0x08
|
||||
|
@ -3,7 +3,7 @@
|
||||
// FILE: DS28CM00.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: Library for the DS28CM00 unique identification chip.
|
||||
// VERSION: 0.2.4
|
||||
// VERSION: 0.2.5
|
||||
// HISTORY: See DS28CM00.cpp
|
||||
// URL: https://github.com/RobTillaart/DS28CM00
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
#define DS28CM00_LIB_VERSION (F("0.2.4"))
|
||||
#define DS28CM00_LIB_VERSION (F("0.2.5"))
|
||||
#define DS28CM00_I2C_MODE 0x00
|
||||
#define DS28CM00_SMBUS_MODE 0x01
|
||||
#define DS28CM00_MODE_UNKNOWN 0xFF
|
||||
@ -26,7 +26,7 @@ public:
|
||||
explicit DS28CM00(const uint8_t dataPin, const uint8_t clockPin);
|
||||
#endif
|
||||
|
||||
bool begin(); // default DS28CM00_I2C_MODE
|
||||
bool begin(); // default DS28CM00_I2C_MODE
|
||||
bool isConnected();
|
||||
bool getUID(uint8_t *);
|
||||
|
||||
|
@ -53,13 +53,15 @@ An example sketch for ESP32 exist and compiles. Feedback welcome.
|
||||
|
||||
## Future
|
||||
|
||||
#### should
|
||||
- only extend on request / bugs
|
||||
- measure performance I2C 400 500 600 kHz ...
|
||||
|
||||
#### could
|
||||
- cache the serial? (costs 8 bytes)
|
||||
- If (defined DS28_CACHE) ...
|
||||
-
|
||||
|
||||
**wont**
|
||||
#### wont
|
||||
- **bool getUID4()** to read only 4 bytes to improve performance. Possible?
|
||||
- **bool getUID(4)** number of bytes as parameter?
|
||||
- **uint8_t getError()** add error handling? - I2C; #bytes; mode; ...(too much for simple device)
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/DS28CM00.git"
|
||||
},
|
||||
"version": "0.2.4",
|
||||
"version": "0.2.5",
|
||||
"license": "MIT",
|
||||
"frameworks": "arduino",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=DS28CM00
|
||||
version=0.2.4
|
||||
version=0.2.5
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino library for I2C DS28CM00 unique identification chip.
|
||||
|
Loading…
x
Reference in New Issue
Block a user