diff --git a/drivers/is31fl3731/is31fl3731.cpp b/drivers/is31fl3731/is31fl3731.cpp index 2980193ef..b00fdb168 100644 --- a/drivers/is31fl3731/is31fl3731.cpp +++ b/drivers/is31fl3731/is31fl3731.cpp @@ -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; } diff --git a/libraries/breakout_matrix11x7/breakout_matrix11x7.hpp b/libraries/breakout_matrix11x7/breakout_matrix11x7.hpp index c78eaf4f7..c8de1c3a7 100644 --- a/libraries/breakout_matrix11x7/breakout_matrix11x7.hpp +++ b/libraries/breakout_matrix11x7/breakout_matrix11x7.hpp @@ -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,