Skip to content

Commit

Permalink
fix(Output): correct PCA9685 mapped intensity
Browse files Browse the repository at this point in the history
leon0399 committed Mar 30, 2023
1 parent 4734fc9 commit cdddda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pca9685/output_writers/pca9685.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "output_writers/pca9685.hpp"

void OH::PCA9685OutputWriter::writeOutput(oh_output_intensity_t intensity) {
this->driver->setPin(this->num, (uint16_t)map(intensity, 0, UINT16_MAX, 0, 4095));
this->driver->setPin(this->num, (uint16_t)map(intensity, 0, OH_OUTPUT_INTENSITY_MAX, 0, 4095));
}

0 comments on commit cdddda1

Please sign in to comment.