0.4.0 PCA9634

This commit is contained in:
Rob Tillaart 2024-01-18 11:50:32 +01:00
parent cb274bfd42
commit 163524c559
11 changed files with 19 additions and 23 deletions

View File

@ -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-18
- fix #34, setLedDriverMode(uint8_t mode)
- minor edits examples
----
## [0.3.0] - 2023-12-11
- refactor API, begin()
- update readme.md

View File

@ -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

View File

@ -2,7 +2,7 @@
// FILE: PCA9634.cpp
// AUTHOR: Rob Tillaart
// DATE: 2022-01-03
// VERSION: 0.3.0
// VERSION: 0.4.0
// PURPOSE: Arduino library for PCA9634 I2C LED driver
// URL: https://github.com/RobTillaart/PCA9634
@ -497,7 +497,7 @@ uint8_t PCA9634::readLedOut(uint8_t reg)
}
// todo move to right section after testing.
// TODO move to right section after testing.
uint8_t PCA9634::setLedDriverMode(uint8_t mode)
{
if (mode > 3) return PCA963X_ERR_MODE;
@ -517,7 +517,7 @@ uint8_t PCA9634::setLedDriverMode(uint8_t mode)
mask = 0b00000000;
break;
}
for (int reg = 0; reg < 1; reg++)
for (int reg = 0; reg < 2; reg++)
{
writeLedOut(reg, mask);
}

View File

@ -3,7 +3,7 @@
// FILE: PCA9634.h
// AUTHOR: Rob Tillaart
// DATE: 2022-01-03
// VERSION: 0.3.0
// VERSION: 0.4.0
// PURPOSE: Arduino library for PCA9634 I2C LED driver, 8 channel
// URL: https://github.com/RobTillaart/PCA9634
@ -12,7 +12,7 @@
#include "Wire.h"
#define PCA9634_LIB_VERSION (F("0.3.0"))
#define PCA9634_LIB_VERSION (F("0.4.0"))
// mode codes

View File

@ -5,8 +5,6 @@
// URL: https://github.com/RobTillaart/PCA9634
#include "Arduino.h"
#include "Wire.h"
#include "PCA9634.h"
@ -17,7 +15,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9634 LIB version: ");
Serial.print("PCA9634_LIB_VERSION: ");
Serial.println(PCA9634_LIB_VERSION);
Serial.println();

View File

@ -5,8 +5,6 @@
// URL: https://github.com/RobTillaart/PCA9634
#include "Arduino.h"
#include "Wire.h"
#include "PCA9634.h"
@ -19,7 +17,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9634 LIB version: ");
Serial.print("PCA9634_LIB_VERSION: ");
Serial.println(PCA9634_LIB_VERSION);
Serial.println();

View File

@ -5,8 +5,6 @@
// URL: https://github.com/RobTillaart/PCA9634
#include "Arduino.h"
#include "Wire.h"
#include "PCA9634.h"
@ -17,7 +15,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9634 LIB version: ");
Serial.print("PCA9634_LIB_VERSION: ");
Serial.println(PCA9634_LIB_VERSION);
Serial.println();

View File

@ -5,8 +5,6 @@
// URL: https://github.com/RobTillaart/PCA9634
#include "Arduino.h"
#include "Wire.h"
#include "PCA9634.h"
@ -17,7 +15,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9634 LIB version: ");
Serial.print("PCA9634_LIB_VERSION: ");
Serial.println(PCA9634_LIB_VERSION);
Serial.println();

View File

@ -5,8 +5,6 @@
// URL: https://github.com/RobTillaart/PCA9634
#include "Arduino.h"
#include "Wire.h"
#include "PCA9634.h"
@ -18,7 +16,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9634 LIB version: ");
Serial.print("PCA9634_LIB_VERSION: ");
Serial.println(PCA9634_LIB_VERSION);
Serial.println();

View File

@ -15,7 +15,7 @@
"type": "git",
"url": "https://github.com/RobTillaart/PCA9634.git"
},
"version": "0.3.0",
"version": "0.4.0",
"license": "MIT",
"frameworks": "*",
"platforms": "*",

View File

@ -1,5 +1,5 @@
name=PCA9634
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 PCA9634 I2C LED driver 8 channel