Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
joshua-8 committed Apr 30, 2024
1 parent 42606e4 commit 774eb56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/example/example.ino
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/*
https://github.com/RCMgames/BSCD
*/
ByteSizedEncoderDecoder bsed = ByteSizedEncoderDecoder(&Wire, 0x11);
ByteSizedEncoderDecoder bsed = ByteSizedEncoderDecoder(&Wire, 14);
void setup()
{
Serial.begin(115200);
Expand Down
4 changes: 2 additions & 2 deletions src/byte-sized-encoder-decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ class ByteSizedEncoderDecoder {
/**
* @brief Constructor for the Byte Sized Encoder Decoder class
* @param _wire: I2C bus to communicate over. &Wire or &Wire1
* @param _address: I2C address of the Byte Sized Encoder Decoder board (as selected by the jumpers), default is 0x0E
* @param _address: I2C address of the Byte Sized Encoder Decoder board (as selected by the jumpers), default is 14, (14-17 are options)
*/
ByteSizedEncoderDecoder(TwoWire* _wire, uint8_t _address = 0x0E)
ByteSizedEncoderDecoder(TwoWire* _wire, uint8_t _address = 14)
{
wire = _wire;
address = _address;
Expand Down

0 comments on commit 774eb56

Please sign in to comment.