필터 지우기
필터 지우기

My yellow led control doesn't work on my gui

조회 수: 2 (최근 30일)
Allen Lee
Allen Lee 2022년 3월 21일
댓글: Mohammed Hamaidi 2022년 3월 21일
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

채택된 답변

Mohammed Hamaidi
Mohammed Hamaidi 2022년 3월 21일
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
Allen Lee
Allen Lee 2022년 3월 21일
really appreciate your help, thank you
Mohammed Hamaidi
Mohammed Hamaidi 2022년 3월 21일
You are welcome

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by