DeqingSun / ch55xduino

An Arduino-like programming API for the CH55X
GNU Lesser General Public License v2.1
448 stars 86 forks source link

About usb sample code #148

Closed Mr-ShiYi closed 1 year ago

Mr-ShiYi commented 1 year ago

I looked at the hidusbkeyboard example code, I do not understand the if statement in it, can you help me explain why the judge button should be written like this, I want to know how you write if statements like this. And, bool button1pressprev= false indicates whether the button is pressed or released 微信截图_20231021222720