MagSafe update, 3rd color suggestion

Dear Apple,

I am trying good to find things that can be upgraded, and trust me here, the MagSafe 4 (or keep its name MagSafe 3 if you want) will be truly amazing. Adding a yellow to mimic macOS window controls will be amazing, and exactly how apple want things to be, they want it to feel like 1 ecosystem, where everything is in sync together. I gave the code in the other post, and here it is again, please really take this in for macOS 27. I tried installing the beta on a separate APFS volume on my Mac, but since I have no other backup device, I decided to stop. I would love to send feedback through feedback assistant, but since im not running beta, I shouldn't really use it, so here I am. Here is some code to help with this:

(THIS CODE IS TO SHOW THE BASE OF THE IDEA, PLEASE DONT COPY-PASTE, DOUBLE CHECK IT FIRST. Consider that I didn’t code this myself, I got help. Don’t expect any code from me to be mine)

    #include <stdbool.h>
#include <stdint.h>
 
typedef enum {
    MODEL_AIR,
    MODEL_PRO
} MacModel;
 
typedef enum {
    LED_OFF,
    LED_SOLID_AMBER,
    LED_SOLID_YELLOW,
    LED_SOLID_GREEN,
    LED_PULSING_AMBER,
    LED_PULSING_YELLOW
} LEDState;
 
uint32_t current_cycle_seconds = 0;
 
MacModel get_mac_model(void);
uint8_t get_battery_soc(void);
uint8_t get_charge_limit(void);
uint32_t get_charger_wattage(void);
bool check_hardware_faults(void);
void apply_led_hardware_state(LEDState state, bool pin_high);
 
void update_magsafe_led(void) {
    MacModel model = get_mac_model();
    uint8_t soc = get_battery_soc();
    uint8_t limit = get_charge_limit();
    uint32_t wattage = get_charger_wattage();
    
    bool overcharge_fault = (soc > (limit + 2));
    bool critical_error = check_hardware_faults() || overcharge_fault;
    bool slow_charger = false;
    
    if (model == MODEL_AIR && wattage < 30) {
        slow_charger = true;
    } else if (model == MODEL_PRO && wattage < 70) {
        slow_charger = true;
    }
 
    LEDState normal_state;
    if (soc >= 90 || soc >= limit) {
        normal_state = LED_SOLID_GREEN;
    } else if (soc >= 50) {
        normal_state = LED_SOLID_YELLOW;
    } else {
        normal_state = LED_SOLID_AMBER;
    }
 
    LEDState active_state = normal_state;
    bool should_pulse = false;
 
    if (current_cycle_seconds < 10) {
        if (critical_error) {
            active_state = LED_PULSING_AMBER;
            should_pulse = true;
        } else if (slow_charger) {
            active_state = LED_PULSING_YELLOW;
            should_pulse = true;
        }
    }
 
    bool led_pin_high = true;
    if (should_pulse) {
        if (current_cycle_seconds % 2 != 0) {
            led_pin_high = false;
        }
    }
 
    apply_led_hardware_state(active_state, led_pin_high);
 
    current_cycle_seconds++;
    if (current_cycle_seconds >= 20) {
        current_cycle_seconds = 0;
    }
}

(THIS CODE IS TO SHOW THE BASE OF THE IDEA, PLEASE DONT COPY-PASTE, DOUBLE CHECK IT FIRST. Consider that I didn’t code this myself, I got help. Don’t expect any code from me to be mine)

This should show:

Pulsing Amber for critical issues

Pulsing yellow for slow chargers, under 30w for Macbook air and if under 70w for Macbook pro. ( can be edited in the future for the leaked MacBook ultra)

Pulses for 10 seconds, and shows the light of the battery percentage for 10 seconds.

Amber: 0-50% battery

Yellow: 50-90% battery

Green: 90%+ battery or reached charging limit.

This will also be very useful if there is a slider to customize what range should be amber, yellow and green. Why? Turning MagSafe into a real dashboard that is more useful than charging or charged, will make it amazing, covering a bit of the price hikes the world is facing. Other than that, apple always wanted things to be as useful as possible. If MagSafe now has what I mentioned, from a glance from afar, people will know their SoC.

Please take this in consideration, and I already appreciate the work done on it if it's being tested. I am pretty sure there will be high interest in the topic. Thanks to whoever is working to it, and hope it come alongside macOS 27. Another person suggested MagSafe turned green when reached charging limit, and it happened in macOS 26. May mine be considered too? Trust me, it will be worth it, making MagSafe from just a wire to a smart dashboard. I know apple care about this, and let MagSafe be an upgrade, covering the price hikes and shortages. Thank you very much, and im sure you will do it to make MagSafe the best charger ever.

Many thanks,

Alyaman

MagSafe update, 3rd color suggestion
 
 
Q