diff --git a/library.properties b/library.properties index 500a9da..abd8bdf 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=pimoroniTrackball -version=0.1.1 +version=0.1.2 author=Nick Reynolds maintainer=Nick Reynolds sentence=Connect the Pimoroni RGBW trackball breakout to a microcontroller. diff --git a/src/pimoroniTrackball.cpp b/src/pimoroniTrackball.cpp index 085b734..24d2a1b 100644 --- a/src/pimoroniTrackball.cpp +++ b/src/pimoroniTrackball.cpp @@ -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 diff --git a/src/pimoroniTrackball.h b/src/pimoroniTrackball.h index c574970..66601cd 100644 --- a/src/pimoroniTrackball.h +++ b/src/pimoroniTrackball.h @@ -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