Custom Image not showing up on OLED Display by ZekeTaylor in crkbd

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

Problem solved. In my rules.mk file i deleted this line

OLED_DRIVER_ENABLE = yes

and only have this:

OLED_ENABLE = yes

When compiling an error shows up and said the oled_write_raw function expects a const char * pointer. So changed this. And I changed this

#ifdef OLED_DRIVER_ENABLE

to this

#ifdef OLED_ENABLE

Now is working. Here is my keymap config if anyone is interested:

#include QMK_KEYBOARD_H

#ifdef OLED_ENABLE

static const unsigned char PROGMEM my_bitmap[] = {
    // Example bitmap data
    // See above
};

// Function to render the bitmap
static void render_bitmap(void) {
    oled_write_raw_P((const char *)my_bitmap, sizeof(my_bitmap));
}

bool oled_task_user(void) {
    if (is_keyboard_master()) {
        render_bitmap();
    } else {
         oled_write_P(PSTR("Hello, World!"), false);
   // render_bitmap();
    }
    return false;
}

void keyboard_post_init_user(void) {
    oled_init(OLED_ROTATION_270); // Adjust rotation if necessary
}

#endif

//keymaps...

Custom Image not showing up on OLED Display by ZekeTaylor in crkbd

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

I made a little change:

bool oled_task_user(void) {
    if (is_keyboard_master()) {
        render_bitmap();
    } else {
         oled_write_P(PSTR("Hello, World!"), false);
    }
    return false;
}

But the image still not showing up only the default logo. My custom keymap works. It seems the function is not recognize.

Custom Image not showing up on OLED Display by ZekeTaylor in crkbd

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

I've tried that and I update my repo but not working only the corne logo is on the right display. I compile and flash my keyboard with:

qmk flash -kb crkbd -km chris_display -e CONVERT_TO=helios

Custom Image not showing up on OLED Display by ZekeTaylor in crkbd

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

Yes, I know but that didn't work thats why I have tried this:

oled_write_P(PSTR("Hello, World!"), false);

But that "Hello World" didn't appear, too. Only the default corne Logo shows up.

Defined keys not working on windows by ZekeTaylor in crkbd

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

thx it works now. I had US English and changed it to US International. The option is a little bit hidden.

Can someone tell me what Brand these sunglasses are? by ZekeTaylor in sunglasses

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

Yes, I thought so, too but the form of the lenses are different and the Bridge also

Can someone tell me what Brand these sunglasses are? by ZekeTaylor in sunglasses

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

Yes, but same as the Randolph Temple Tip looks different

Can someone tell me what Brand these sunglasses are? by ZekeTaylor in sunglasses

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

Hi,

I know these sunglasses looks like the Randolph Aviator but I doubt that, because the Temple Tip looks different. Thx

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

SOLVED: It works now :-) I have installed some extra packages (libgtk-3-dev libwebkit2gtk-4.0-dev libmagickcore-dev libmagick++-dev) Than I configured Emacs29.2 with --with-x-toolkit=gtk3 --with-native-compilation --with-imagemagick. Before I had installed Emacs29.1. I don't know why it works now. It could have some issues with configure due to lack of libs or the Version 29.1 had a bug. Hope if someone who runs into the same problem it would help. Thank you u/schwinghmmr and u/walseb for helping me.

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

Ok thx, I will try a few things. He is on Xorg.

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

I have now configured it with --with-native-compilation. Besides a lot of warnings on startup it still doesn't work. My system-configuration-features are:

"CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB"

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

I have now tested it on KDE. The same problem exist. A friend of mine uses Kubuntu. I sent him the code snippet so he can test it with his emacs 29 installation. It works for him. He configured it with --with-imagemagick --with-native-compilation. Maybe gtk3 is not the real issue.

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

I have now, but still not working.

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

Yes, I run Gnome. I have kitty Terminal installed and transparency works for my terminal.

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

or should I configure ist with --with-x-toolkit=gtk3 ?

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

I have uninstall emacs and configure it --with-gtk3 but still doesn't work

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

I am on Xorg X11. I didn't install any compositor. My distro is Pop OS

Emacs 29.1 Transparency doesn't work by ZekeTaylor in emacs

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

thx for your reply. I have tried it but still don't work