Skip to content
Permalink
Browse files
Update classess lab so ini points at target board
  • Loading branch information
aa9863 committed Mar 5, 2024
1 parent 5c68235 commit 06d8333e5821bd9c57917c07edf672fee6f06530
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
@@ -13,8 +13,8 @@ platform = ststm32
board = nucleo_f401re
framework = mbed

[env:nucleo_f746zg]
platform = ststm32
board = nucleo_f746zg
framework = mbed
;[env:nucleo_f746zg]
;platform = ststm32
;board = nucleo_f746zg
;framework = mbed

@@ -39,7 +39,6 @@ int buttonState;

// Hander Function for our Buton Press
void handler(){
printf("Update Button State\n");
buttonState = !buttonState;

}
@@ -49,7 +48,7 @@ int main() {
// put your setup code here, to run once:

//Setup the User Buton as an Input
InterruptIn theButton(USER_BUTTON);
InterruptIn theButton(BUTTON1);

//Bind the interupt to a function
theButton.rise(&handler);

0 comments on commit 06d8333

Please sign in to comment.