• 0 Posts
  • 46 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle






  • SteveTech@programming.devtoUnixporn@lemmy.mlI got a little distracted
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 months ago

    Oh cool, I believe only 4bit colours are possible, you can use this table from Wikipedia and the escape sequence \e[<FG>m replacing<FG> with your chosen foreground colour. Also \e[0m to reset everything.

    funny how we use the same font XD

    Haha yeah! I noticed that too!

    I think I just used regex look aheads and look behinds to insert the colours easily.

    Edit: Oh you can change that actual TTY font to a bigger one, if the text is too small too.







  • Idk, with I2C if it’s not something that needs a kernel level driver, there usually isn’t a problem with interacting with it from user space, for example basically all RAM RGB controllers are I2C and OpenRGB has no problem with them. I’m pretty sure I’ve only ever used an I2C device tree overlay for an RTC.

    Also I2C/SMBus is present everywhere on x86, like some graphics cards expose it through their HDMI ports, even some server motherboards have a header for it; but for GPIO I’m unaware of any motherboards that expose it, so good luck researching the chipset and tracing out the pins.