Skip to content
Permalink
Browse files

Merge branch 'feature/varibright-ui' into csboling-dev

  • Loading branch information
csboling committed Jun 22, 2019
2 parents 8313c38 + bbb27a1 commit f9355d03d95ffd539fccfd3c34fdae5df562c907
Showing with 12 additions and 1 deletion.
  1. +12 −1 src/ansible_grid.c
@@ -1725,10 +1725,16 @@ void handler_KriaGridKey(s32 data) {
}
else if(view_config) {
if(z) {
if(x<8 && y<7) {
if(x<8 && y > 0 && y<7) {
note_sync ^= 1;
flashc_memset8((void*)&(f.kria_state.note_sync), note_sync, 1, true);
}
else if(y == 0 && x < 3) {
grid_varibrightness = x == 0 ? 1 :
x == 1 ? 4 :
16;
flashc_memset8((void*)&(f.state.grid_varibrightness), grid_varibrightness, 1, true);
}
else if(y == 3) {
if(loop_sync == 1) {
loop_sync = 0;
@@ -3133,6 +3139,11 @@ void refresh_kria_config(void) {
// clear grid
memset(monomeLedBuffer,0,128);

memset(monomeLedBuffer,4, 3);
monomeLedBuffer[R0 + (grid_varibrightness == 1 ? 0 :
grid_varibrightness == 4 ? 1 :
2)] = 12;

uint8_t i = note_sync * 4 + 3;

monomeLedBuffer[R2 + 2] = i;

0 comments on commit f9355d0

Please sign in to comment.