0.7.1 PCA9685

This commit is contained in:
Rob Tillaart 2024-01-05 17:10:53 +01:00
parent bea8f833c5
commit ae1391e636
15 changed files with 30 additions and 37 deletions

View File

@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).
## [0.7.1] - 2024-01-05
- minor edits examples
- fix version nr in .cpp
## [0.7.0] - 2023-12-21
- fix #25, support for Arduino ESP32 S3 - breaking change
- update examples

View File

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2016-2023 Rob Tillaart
Copyright (c) 2016-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: PCA9685.cpp
// AUTHOR: Rob Tillaart
// DATE: 24-apr-2016
// VERSION: 0.6.0
// VERSION: 0.7.1
// PURPOSE: Arduino library for PCA9685 I2C LED driver, 16 channel PWM, 12 bit.
// URL: https://github.com/RobTillaart/PCA9685_RT

View File

@ -3,7 +3,7 @@
// FILE: PCA9685.h
// AUTHOR: Rob Tillaart
// DATE: 24-apr-2016
// VERSION: 0.7.0
// VERSION: 0.7.1
// PURPOSE: Arduino library for PCA9685 I2C LED driver, 16 channel PWM, 12 bit.
// URL: https://github.com/RobTillaart/PCA9685_RT
@ -12,7 +12,7 @@
#include "Wire.h"
#define PCA9685_LIB_VERSION (F("0.7.0"))
#define PCA9685_LIB_VERSION (F("0.7.1"))
// ERROR CODES
#define PCA9685_OK 0x00

View File

@ -5,8 +5,6 @@
// URL: https://github.com/RobTillaart/PCA9685_RT
#include "Arduino.h"
#include "Wire.h"
#include "PCA9685.h"
@ -16,6 +14,7 @@ PCA9685 ledArray(0x20);
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

@ -1,7 +1,7 @@
//
// FILE: PCA9685_allOFF_test.ino
// AUTHOR: Rob Tillaart
// PUPROSE: test PCA9685 library
// PURPOSE: test PCA9685 library
// URL: https://github.com/RobTillaart/PCA9685_RT
//
// sets all channels to a PWM
@ -20,7 +20,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685 LIB version: ");
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

@ -1,7 +1,7 @@
//
// FILE: PCA9685_digitalWrite_test.ino
// AUTHOR: Rob Tillaart
// PUPROSE: test PCA9685 library
// PURPOSE: test PCA9685 library
// URL: https://github.com/RobTillaart/PCA9685_RT
//
// sets one channel to max PWM 0..4095
@ -9,8 +9,6 @@
// to see the frequency of the PWM
#include "Arduino.h"
#include "Wire.h"
#include "PCA9685.h"
@ -25,7 +23,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685 LIB version: ");
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

@ -1,7 +1,7 @@
//
// FILE: PCA9685_maxPWM_test.ino
// AUTHOR: Rob Tillaart
// PUPROSE: test PCA9685 library
// PURPOSE: test PCA9685 library
// URL: https://github.com/RobTillaart/PCA9685_RT
//
// sets one channel to max PWM 0..4095
@ -9,8 +9,6 @@
// to see the frequency of the PWM
#include "Arduino.h"
#include "Wire.h"
#include "PCA9685.h"
@ -24,7 +22,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685 LIB version: ");
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

@ -1,7 +1,7 @@
//
// FILE: PCA9685_setFrequency_offset.ino
// AUTHOR: Rob Tillaart
// PUPROSE: test PCA9685 library
// PURPOSE: test PCA9685 library
// URL: https://github.com/RobTillaart/PCA9685_RT
//
// This sketch is to determine the offset needed to get te best matching
@ -14,8 +14,6 @@
// Note: the higher the frequency, the more inaccurate the real frequency,
#include "Arduino.h"
#include "Wire.h"
#include "PCA9685.h"
@ -35,7 +33,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685 LIB version: ");
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

@ -1,7 +1,7 @@
//
// FILE: PCA9685_setFrequency_test.ino
// AUTHOR: Rob Tillaart
// PUPROSE: test PCA9685 library
// PURPOSE: test PCA9685 library
// URL: https://github.com/RobTillaart/PCA9685_RT
//
// sets one channel to max PWM 0..4095
@ -9,8 +9,6 @@
// to see the frequency of the PWM
#include "Arduino.h"
#include "Wire.h"
#include "PCA9685.h"
@ -28,7 +26,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685 LIB version: ");
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

@ -1,11 +1,10 @@
//
// FILE: PCA9685_test01.ino
// AUTHOR: Rob Tillaart
// PUPROSE: test PCA9685 library
// PURPOSE: test PCA9685 library
// URL: https://github.com/RobTillaart/PCA9685_RT
#include "Arduino.h"
#include "Wire.h"
#include "PCA9685.h"
@ -16,7 +15,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685 LIB version: ");
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

@ -1,12 +1,10 @@
//
// FILE: PCA9685_test02.ino
// AUTHOR: Rob Tillaart
// PUPROSE: test PCA9685 library
// PURPOSE: test PCA9685 library
// URL: https://github.com/RobTillaart/PCA9685_RT
#include "Arduino.h"
#include "Wire.h"
#include "PCA9685.h"
@ -17,7 +15,7 @@ void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("PCA9685 LIB version: ");
Serial.print("PCA9685_LIB_VERSION: ");
Serial.println(PCA9685_LIB_VERSION);
Serial.println();

View File

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

View File

@ -1,5 +1,5 @@
name=PCA9685_RT
version=0.7.0
version=0.7.1
author=Rob Tillaart <rob.tillaart@gmail.com>
maintainer=Rob Tillaart <rob.tillaart@gmail.com>
sentence=Arduino library for PCA9685 I2C LED driver, 16 channel PWM, 12 bit.

View File

@ -49,7 +49,7 @@ unittest_teardown()
unittest(test_constants)
{
fprintf(stderr, "\nregisterss");
fprintf(stderr, "\n registers");
assertEqual(PCA9685_MODE1 , 0x00);
assertEqual(PCA9685_MODE2 , 0x01);
assertEqual(PCA9685_ALLCALLADR , 0x05);
@ -64,7 +64,7 @@ unittest(test_constants)
assertEqual(PCA9685_TESTMODE , 0xFF);
fprintf(stderr, "\nerrorcodes");
fprintf(stderr, "\n error codes");
assertEqual(PCA9685_OK , 0x00);
assertEqual(PCA9685_ERROR , 0xFF);
assertEqual(PCA9685_ERR_CHANNEL, 0xFE);