fn classify_button(pressed: bool) -> &'static str {
    if pressed {
        "pressed"
    } else {
        "released"
    }
}

fn classify_adc(raw: u16) -> &'static str {
    // TODO: Adjust thresholds if you want a different behavior.
    match raw {
        0..=1200 => "low",
        1201..=2800 => "medium",
        _ => "high",
    }
}

fn main() {
    // TODO: fill in some values into the arrays
    let button_samples = [false, true, true, false];
    let adc_samples: [u16; 5] = [120, 900, 1500, 2600, 3900];

    for pressed in button_samples {
        // call and print the function for the button
        println!("button: {}");
    }

    for raw in adc_samples {
        // call and print the function for the button
        println!("adc raw={raw:4} => {}");
    }
}
