Hello, Thank you for seeing my problem,.I use the MKE06Z.I would like to know how to read the level of a pin. Please show me how it works.Thank you!
So this is my way of reading the pin level with '|' and I feel like this is going to be a lot of trouble, every time.
Best Regards!
GANG LIU
解決済! 解決策の投稿を見る。
Hi GANG,
Please refer the code shown below:
if((GPIO_Read(GPIOB) & 0x2000000)==0x2000000)
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------
Hi GANG,
Please refer the code shown below:
if((GPIO_Read(GPIOB) & 0x2000000)==0x2000000)
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
----------------------------------------------------------------------------------------------------------------------