mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
0.4.0 AD5245
This commit is contained in:
parent
d5fd7191ff
commit
b50edf7ff8
@ -1,7 +1,7 @@
|
||||
//
|
||||
// FILE: AD5245.cpp
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.3.0
|
||||
// VERSION: 0.4.0
|
||||
// PURPOSE: Arduino library for I2C digital potentiometer AD5245.
|
||||
// DATE: 2022-07-31
|
||||
// URL: https://github.com/RobTillaart/AD5245
|
||||
@ -9,6 +9,7 @@
|
||||
|
||||
#include "AD5245.h"
|
||||
|
||||
|
||||
#define AD5245_WRITE 0x00
|
||||
#define AD5245_RESET 0x40
|
||||
#define AD5245_SHUTDOWN 0x20
|
||||
@ -26,7 +27,7 @@ AD5245::AD5245(const uint8_t address, TwoWire *wire)
|
||||
|
||||
bool AD5245::begin()
|
||||
{
|
||||
if ((_address != 0x2C) || (_address != 0x2D)) return false;
|
||||
if ((_address != 0x2C) && (_address != 0x2D)) return false;
|
||||
if (! isConnected()) return false;
|
||||
reset();
|
||||
return true;
|
||||
|
@ -2,19 +2,19 @@
|
||||
//
|
||||
// FILE: AD5245.h
|
||||
// AUTHOR: Rob Tillaart
|
||||
// VERSION: 0.3.0
|
||||
// VERSION: 0.4.0
|
||||
// PURPOSE: Arduino library for I2C digital potentiometer AD5245.
|
||||
// DATE: 2022-07-31
|
||||
// URL: https://github.com/RobTillaart/AD5245
|
||||
//
|
||||
// Experimental
|
||||
|
||||
|
||||
// experimental - to be tested - use at own risk
|
||||
|
||||
#include "Arduino.h"
|
||||
#include "Wire.h"
|
||||
|
||||
|
||||
#define AD5245_LIB_VERSION (F("0.3.0"))
|
||||
#define AD5245_LIB_VERSION (F("0.4.0"))
|
||||
|
||||
|
||||
#define AD5245_OK 0
|
||||
|
@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
|
||||
## [0.4.0] - 2024-01-12
|
||||
- Fix #8, isConnected
|
||||
- minor edits
|
||||
|
||||
----
|
||||
|
||||
## [0.3.0] - 2023-12-06
|
||||
- refactor API, begin()
|
||||
- update readme.md
|
||||
|
@ -1,6 +1,6 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022-2023 Rob Tillaart
|
||||
Copyright (c) 2022-2024 Rob Tillaart
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@ -107,9 +107,19 @@ The examples show the basic working of the functions.
|
||||
|
||||
## Future
|
||||
|
||||
#### Must
|
||||
|
||||
#### Should
|
||||
|
||||
- sync with AD520X library
|
||||
- sync with AD524X library
|
||||
- reset ==> midScaleReset() ? AD524X alike
|
||||
|
||||
#### Could
|
||||
|
||||
#### Wont
|
||||
|
||||
- midScaleReset() ? AD524X alike
|
||||
==> user can do **write(AD5245_MIDPOINT)**.
|
||||
|
||||
|
||||
## Support
|
||||
|
@ -3,7 +3,6 @@
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: AD5245 demo program
|
||||
// URL: https://github.com/RobTillaart/AD5245
|
||||
//
|
||||
|
||||
|
||||
#include "AD5245.h"
|
||||
|
@ -3,7 +3,6 @@
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: AD5245 demo program
|
||||
// URL: https://github.com/RobTillaart/AD5245
|
||||
//
|
||||
|
||||
|
||||
#include "AD5245.h"
|
||||
|
@ -3,7 +3,6 @@
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: AD5245 demo program
|
||||
// URL: https://github.com/RobTillaart/AD5245
|
||||
//
|
||||
|
||||
|
||||
#include "AD5245.h"
|
||||
|
@ -3,7 +3,6 @@
|
||||
// AUTHOR: Rob Tillaart
|
||||
// PURPOSE: AD5245 demo program
|
||||
// URL: https://github.com/RobTillaart/AD5245
|
||||
//
|
||||
|
||||
|
||||
#include "AD5245.h"
|
||||
|
@ -15,7 +15,7 @@
|
||||
"type": "git",
|
||||
"url": "https://github.com/RobTillaart/AD5245"
|
||||
},
|
||||
"version": "0.3.0",
|
||||
"version": "0.4.0",
|
||||
"license": "MIT",
|
||||
"frameworks": "*",
|
||||
"platforms": "*",
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=AD5245
|
||||
version=0.3.0
|
||||
version=0.4.0
|
||||
author=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
|
||||
sentence=Arduino Library for AD5245 digital potentiometer.
|
||||
|
Loading…
x
Reference in New Issue
Block a user