Skip to content

Commit

Permalink
Change bool begin() to void, fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
ncmreynolds committed May 23, 2022
1 parent b3d29d0 commit fd81f38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=pimoroniTrackball
version=0.1.1
version=0.1.2
author=Nick Reynolds
maintainer=Nick Reynolds <[email protected]>
sentence=Connect the Pimoroni RGBW trackball breakout to a microcontroller.
Expand Down
2 changes: 1 addition & 1 deletion src/pimoroniTrackball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ pimoroniTrackball::~pimoroniTrackball() //Destructor function
{
}

bool pimoroniTrackball::begin(uint8_t address, TwoWire &wirePort)
void pimoroniTrackball::begin(uint8_t address, TwoWire &wirePort)
{
_trackballAddress = address; //Set the I2C address of the trackball
_i2cPort = &wirePort; //Set the wire port used for the trackball
Expand Down
2 changes: 1 addition & 1 deletion src/pimoroniTrackball.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class pimoroniTrackball
pimoroniTrackball(); //Constructor function
~pimoroniTrackball(); //Destructor function
//Setup functions
bool begin(uint8_t address = 0x0A, TwoWire &i2cPort = Wire); //Initialise the trackball library
void begin(uint8_t address = 0x0A, TwoWire &i2cPort = Wire); //Initialise the trackball library
bool isConnected(); //Check the trackball is connected
void setRGBW(uint8_t redBrightness, uint8_t greenBrightness, uint8_t blueBrightness, uint8_t whiteBrightness); //Set the brightness for each of the RGB&W LEDs
void setRed(uint8_t redBrightness); //Set the brightness of the red LED
Expand Down

0 comments on commit fd81f38

Please sign in to comment.