Skip to content

Commit

Permalink
using bool instead of boolean for better compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
noah1510 committed May 30, 2021
1 parent 70c2f4c commit 2ca539e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/LedController_template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ namespace sakurajin {
* @param state true wenn sie an sein soll, ansonsten false
*/
void setLed(unsigned int segmentNumber, unsigned int row, unsigned int column,
boolean state) noexcept;
bool state) noexcept;

/**
* \~english
Expand Down Expand Up @@ -564,7 +564,7 @@ namespace sakurajin {
* @param dp true wenn der Dezimalpunkt gesetzt werden soll.
*/
void setDigit(unsigned int segmentNumber, unsigned int digit, byte value,
boolean dp) noexcept;
bool dp) noexcept;

/**
* \~english
Expand All @@ -590,7 +590,7 @@ namespace sakurajin {
* @param dp true wenn der Dezimalpunkt gesetzt werden soll.
*/
void setChar(unsigned int segmentNumber, unsigned int digit, char value,
boolean dp) noexcept;
bool dp) noexcept;

/**
* \~english
Expand Down
6 changes: 3 additions & 3 deletions src/implementations/LedController_display.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ byte sakurajin::LedController<columns,rows>::getRow(unsigned int segmentNumber,

template <size_t columns, size_t rows>
void sakurajin::LedController<columns,rows>::setLed(unsigned int segmentNumber, unsigned int row,
unsigned int column, boolean state) noexcept {
unsigned int column, bool state) noexcept {
if (!initilized || row > 7 || column > 7 ||
segmentNumber >= conf.SegmentCount()) {
return;
Expand Down Expand Up @@ -175,7 +175,7 @@ void sakurajin::LedController<columns,rows>::setColumn(unsigned int segmentNumbe

template <size_t columns, size_t rows>
void sakurajin::LedController<columns,rows>::setDigit(unsigned int segmentNumber, unsigned int digit,
byte value, boolean dp) noexcept {
byte value, bool dp) noexcept {
if (!initilized || segmentNumber >= conf.SegmentCount() || digit > 7) {
return;
};
Expand All @@ -190,7 +190,7 @@ void sakurajin::LedController<columns,rows>::setDigit(unsigned int segmentNumber

template <size_t columns, size_t rows>
void sakurajin::LedController<columns,rows>::setChar(unsigned int segmentNumber, unsigned int digit,
char value, boolean dp) noexcept {
char value, bool dp) noexcept {
if (!initilized || segmentNumber >= conf.SegmentCount() || digit > 7) {
return;
};
Expand Down

0 comments on commit 2ca539e

Please sign in to comment.