The OP
Published on 2024-5-20 19:32
Only look at the author
This post is from MCU
Latest reply
When the state of P3_0 is 1, P2_0=P2_0 will be executed. Here, change it to P2_0=~P2_0 to reverse the level.
Details
Published on 2024-5-23 09:51
| ||
|
||
2
Published on 2024-5-20 22:24
Only look at the author
This post is from MCU
| ||
|
||
|
3
Published on 2024-5-21 09:13
Only look at the author
| |
|
|
|
秦天qintian0303
Currently offline
|
4
Published on 2024-5-21 09:19
Only look at the author
|
Personal signature
在爱好的道路上不断前进,在生活的迷雾中播撒光引 |
|
|
This post is from MCU
Comments | ||
|
||
|
hellokitty_bean
Currently offline
|
6
Published on 2024-5-21 10:09
Only look at the author
|
|
|
|
suiyue9528
Currently offline
|
7
Published on 2024-5-21 10:30
Only look at the author
This post is from MCU
Comments
Thank you very much, it really enlightened me! I will correct it later.
Details
Published on 2024-5-21 17:59
| |
|
||
|
This post is from MCU
| ||
|
||
|
This post is from MCU
Comments | ||
|
||
|
This post is from MCU
| ||
|
||
|
11
Published on 2024-5-22 11:11
Only look at the author
This post is from MCU
| ||
|
||
|
12
Published on 2024-5-22 13:01
Only look at the author
This post is from MCU
Comments
LEDNum<<=1 is the same as LED=LEDNum<<1. I wrote LEDNum<<1 before without adding "=". When compiling, this sentence was always optimized away by the program and not executed. I changed it to LEDNum<<=1 and it worked. I've learned a lot. Thank you very much. It turned out that I had a syntax error.
Details
Published on 2024-5-24 15:45
| ||
|
||
|
suiyue9528
Currently offline
|
13
Published on 2024-5-23 09:51
Only look at the author
This post is from MCU
Comments
The idea of my code is that when the state of P3_0 is 1, the state of P2_0 remains unchanged, and when the state of P3_0 is 0, the state of P2_0 flips. The execution result shows that after adding the else statement, the state cannot be flipped, and P2_0 keeps the same state. After removing the else statement, it can flip normally.
Details
Published on 2024-5-24 15:51
| |
|
||
|
This post is from MCU
| ||
|
||
|
This post is from MCU
| ||
|
||
|
论坛测评队员
EEWorld Datasheet Technical Support
EEWorld
subscription
account
EEWorld
service
account
Automotive
development
circle
About Us Customer Service Contact Information Datasheet Sitemap LatestNews
Room 1530, Zhongguancun MOOC Times Building, Block B, 18 Zhongguancun Street, Haidian District, Beijing 100190, China Tel:(010)82350740 Postcode:100190