Skip to content
Snippets Groups Projects
Commit 90b8ba20 authored by jamesimmanuel.magsino@stud.h-da.de's avatar jamesimmanuel.magsino@stud.h-da.de
Browse files

fix flickering

parent 01640785
No related branches found
No related tags found
No related merge requests found
...@@ -111,10 +111,12 @@ void set_progress(double percentage) ...@@ -111,10 +111,12 @@ void set_progress(double percentage)
int numerator = (percentage * 32) / 100; int numerator = (percentage * 32) / 100;
for (int i = 0; i <= numerator; i++) i2c_write_blocking(i2c_default, 0x70, better_matrix[numerator], 17, false);
{
i2c_write_blocking(i2c_default, 0x70, better_matrix[i], 17, false); // for (int i = 0; i <= numerator; i++)
} //{
// i2c_write_blocking(i2c_default, 0x70, better_matrix[i], 17, false);
//}
} }
void callback(uint gpio, uint32_t events) void callback(uint gpio, uint32_t events)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment