Skip to content

Commit

Permalink
fix rgb_set_color signature
Browse files Browse the repository at this point in the history
  • Loading branch information
marchingband committed Dec 12, 2021
1 parent 4821ad9 commit 2e592fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rgb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void rgb_init(uint16_t pin){
rgb->clear();
}

void rgb_set_color(int red, int green, int blue)
void rgb_set_color(uint8_t red, uint8_t green, uint8_t blue)
{
rgb->setPixelColor(0, rgb->Color(red, green, blue));
rgb->show();
Expand Down
2 changes: 1 addition & 1 deletion src/rgb.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
#define RGB_H

void rgb_init(uint16_t pin);
void rgb_set_color(int red, int green, int blue);
void rgb_set_color(uint8_t red, uint8_t green, uint8_t blue);

#endif

0 comments on commit 2e592fa

Please sign in to comment.