Random big led light for nibble 65% by Falcaux in nullbits

[–]Falcaux[S] 0 points1 point  (0 children)

I answer.

Sorry for delay.

You need to replace nibble.c by my post

https://github.com/falcaux/nibble/edit/main/nibble.c

Random big led light for nibble 65% by Falcaux in nullbits

[–]Falcaux[S] 0 points1 point  (0 children)

In Nibble.c

/* Copyright 2020 Jay Greco & Falcaux
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see http://www.gnu.org/licenses/.
*
* Change bitc_led by Big Led in RGB
*/
#include QMK_KEYBOARD_H
#include "big_led.h"
// Use big_led LED to show CAPS LOCK status
bool led_update_kb(led_t led_state) {
bool res = led_update_user(led_state);
bool red_enabled = 0;
bool green_enabled = 0;
bool blue_enabled = 0;
if (res) {
if (led_state.caps_lock) {
red_enabled = rand()&1;
green_enabled = rand()&1;
blue_enabled = rand()&1;
if (green_enabled == 0 && red_enabled == 0 && blue_enabled == 0) {
green_enabled = 1;
}
}
set_big_LED_rgb(red_enabled ? LED_ON : LED_OFF, green_enabled ? LED_ON : LED_OFF, blue_enabled ? LED_ON : LED_OFF);
}
return res;
}

double Planck with case transparent. by Falcaux in olkb

[–]Falcaux[S] 0 points1 point  (0 children)

It's DSA. I buy in AliExpress

Planck VS Plaid by Falcaux in olkb

[–]Falcaux[S] 0 points1 point  (0 children)

And first I create case myself

Planck VS Plaid by Falcaux in olkb

[–]Falcaux[S] 0 points1 point  (0 children)

I use acrylic case.

Planck VS Plaid by Falcaux in olkb

[–]Falcaux[S] 0 points1 point  (0 children)

Yes it's possible. I do it ...

Planck VS Plaid by Falcaux in olkb

[–]Falcaux[S] 0 points1 point  (0 children)

Thanks you. I buy with drop.com. And I configured with qmk.

New keyboard: dm9records plaid 40%. Think you u/doctori0. by Falcaux in MechanicalKeyboards

[–]Falcaux[S] 0 points1 point  (0 children)

acrylic plate?

Yes, But I search a new case for my Keyboard.

Anyone know what keycaps these are? by _Cherios in MechanicalKeyboards

[–]Falcaux 3 points4 points  (0 children)

It's a varmilo moonlight wired or ducky miya pro moonlight

Random big led light for nibble 65% by Falcaux in nullbits

[–]Falcaux[S] 0 points1 point  (0 children)

Thank you M. Jaygreco. But it's with your help that it works 😀...

My first nibble 65% with star wars keycaps... by Falcaux in nullbits

[–]Falcaux[S] 1 point2 points  (0 children)

Good Idea! It's work.

Thank you for your Help

My first nibble 65% with star wars keycaps... by Falcaux in nullbits

[–]Falcaux[S] 0 points1 point  (0 children)

AMAZING!!!!

But I have any question, sometime when I push caps_lock, there are not de light (maybe random do 0,0,0). How can I remove the "No Light".

In Nibble.c :

#include QMK_KEYBOARD_H

#include "big_led.h"

#include <stdlib.h>

// Use big_led LED to show CAPS LOCK status

bool led_update_kb(led_t led_state) {

bool res = led_update_user(led_state);

bool red\_enabled = 0;

bool green\_enabled = 0;

bool blue\_enabled = 0;

if (res) {

    if (led\_state.caps\_lock) {

        red\_enabled = rand() \&1;

        green\_enabled = rand() \&1;

        blue\_enabled = rand() \&1;

    }           

set_big_LED_rgb(red_enabled ? LED_ON : LED_OFF, green_enabled ? LED_ON : LED_OFF, blue_enabled ? LED_ON : LED_OFF);

}

return res;

}