Posted at

【NUCLEO_F446RE】USER_BUTTONで1回だけHello,World.【メモ】

More than 1 year has passed since last update.


main.cpp

//前略

int main(){
int b1;
button.mode(PullUp);
while(1){
b1=button;
if(!b1){
printf("Hello,World.\n\r");
while(b1 == 0){
b1=button;
}
}
}
}