Skip to content

Commit

Permalink
Merge pull request #131 from pimoroni/patch-is31fl3731
Browse files Browse the repository at this point in the history
Recover the initialisation patch for is31fl3731
  • Loading branch information
Gadgetoid authored May 4, 2021
2 parents 69ba1c8 + 5c785af commit eee621d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions drivers/is31fl3731/is31fl3731.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,18 @@ namespace pimoroni {
gpio_set_function(sda, GPIO_FUNC_I2C); gpio_pull_up(sda);
gpio_set_function(scl, GPIO_FUNC_I2C); gpio_pull_up(scl);

i2c_reg_write_uint8(reg::SHUTDOWN, 0b00000001);

i2c_reg_write_uint8(reg::BANK, CONFIG_BANK);
i2c_reg_write_uint8(reg::SHUTDOWN, 0b00000000);

clear();
update(0);

i2c_reg_write_uint8(reg::SHUTDOWN, 0b00000001);

i2c_reg_write_uint8(reg::MODE, mode::PICTURE);

i2c_reg_write_uint8(reg::AUDIOSYNC, 0);

clear();

return true;
}

Expand Down
2 changes: 1 addition & 1 deletion libraries/breakout_matrix11x7/breakout_matrix11x7.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace pimoroni {
uint8_t lookup_pixel(uint8_t index);

// This wonderful lookup table maps the LEDs on Matrix 11x7
const int8_t lookup_table[WIDTH * HEIGHT] = {
const uint8_t lookup_table[WIDTH * HEIGHT] = {
6, 22, 38, 54, 70, 86, 14, 30, 46, 62, 78,
5, 21, 37, 53, 69, 85, 13, 29, 45, 61, 77,
4, 20, 36, 52, 68, 84, 12, 28, 44, 60, 76,
Expand Down

0 comments on commit eee621d

Please sign in to comment.