Filter löschen
Filter löschen

My yellow led control doesn't work on my gui

2 Ansichten (letzte 30 Tage)
Allen Lee
Allen Lee am 21 Mär. 2022
Kommentiert: Mohammed Hamaidi am 21 Mär. 2022
I was ask to create a gui that include red , yellow and green led control. I would need to verify id first to enable the led button control. The red led works well with me but the yellow led doesn't work at all. Are my code wrong or i missing something in my code? The full gui should be work like the video in this link.GUI led

Akzeptierte Antwort

Mohammed Hamaidi
Mohammed Hamaidi am 21 Mär. 2022
Just change this two lines
%set callback for h10 (yellow on)
set (h11, 'Callback', 'yellow_led_control(h11, h12, h10, id_flag, 1)');
%set callback for h11 (yellow off)
set (h12, 'Callback', 'yellow_led_control(h11, h12, h10, id_flag, 0)');
  2 Kommentare
Allen Lee
Allen Lee am 21 Mär. 2022
really appreciate your help, thank you
Mohammed Hamaidi
Mohammed Hamaidi am 21 Mär. 2022
You are welcome

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by