I can't set "configurePin" in mode 'pwm' (work with Raspberry pi3)
조회 수: 1 (최근 30일)
이전 댓글 표시
When I write command:
configurePin(mypi, 13, 'PWM');
I receive error:
">> configurePin(mypi, 13, 'PWM');
Error using raspi/recvResponse (line 697)
Unable to configure pin for PWM output.
Error in raspi.internal.PWMBase/initPWM (line 24)
recvResponse(obj);
Error in raspi/configurePinPWM (line 830)
initPWM(obj,pinNumber,frequency,0);
Error in raspi/configurePin (line 489)
configurePinPWM(obj,pinNumber,frequency);
"
description this method - https://www.mathworks.com/help/supportpkg/raspberrypiio/ref/configurepin.html
Help me, please.
댓글 수: 0
답변 (1개)
Walter Roberson
2017년 12월 29일
Notice that 13 is not on the list of Available Digital Pins in the example https://www.mathworks.com/help/supportpkg/raspberrypiio/ref/configurepin.html#bvdit9u.bt548he-20 .
The list of GPIO pins is different for different boards and different ways of talking about the pins. In at least one of the pin numbering schemes, pin 13 is MISO, which is for SPI interfaces.
댓글 수: 1
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!