Skip to main content

Arduino Library

The Soldered-Button-LED-Buzzer-Board library handles the I2C communication with the board's ATtiny404 for you. Include ButtonLedBuzzerBoard-SOLDERED.h, create one ButtonLedBuzzerBoard_Soldered object, call begin(), and you can read the buttons, set the LED colours and play tones.

Not installed yet? Follow Quick Start before using the functionality pages.

Functionality​

Each page starts with one verified library example and explains every function the example uses to get that result.

How the library talks to the board​

The library reads and writes three registers on the board. You only need them if you write your own code for another platform.

RegisterDirectionContents
0x00ReadButton states, 1 byte: bit 0 is BTN1, bit 1 is BTN2, bit 2 is BTN3
0x01WriteLED colours, 9 bytes: red, green and blue for LED 0, then LED 1, then LED 2
0x02WriteBuzzer frequency in Hz, 2 bytes, high byte first; the examples write 0 to stop the tone