Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Revision 8:14c5ba6aa06d, committed 2019-03-18
- Comitter:
- CharlesBl
- Date:
- Mon Mar 18 12:46:18 2019 +0000
- Parent:
- 7:a59d1efdbfe1
- Commit message:
- modif conttroler
Changed in this revision
| Controller.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/Controller.lib Fri Mar 15 21:57:22 2019 +0000 +++ b/Controller.lib Mon Mar 18 12:46:18 2019 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/teams/Polybot-Grenoble/code/Controller/#6cf01b126695 +https://os.mbed.com/teams/Polybot-Grenoble/code/Controller/#f2ed347dfbda
--- a/main.cpp Fri Mar 15 21:57:22 2019 +0000
+++ b/main.cpp Mon Mar 18 12:46:18 2019 +0000
@@ -17,32 +17,7 @@
Serial pc(SERIAL_TX, SERIAL_RX);
-InterruptIn button(USER_BUTTON);
-
-Ticker systick;
-int flag=0;
-
-void affiche(){
- flag=1;
-}
-
-void released()
-{
- button.disable_irq();
- mcp.reset_encoder_value();
- button.enable_irq();
-}
-
int main()
{
- button.fall(&released);
- systick.attach(&affiche,0.1);
-
- while(1){
- if(flag==1){
- flag=0;
- pc.printf("%i - %i\n\r", mcp.read_encoder_value_M1(),mcp.read_encoder_value_M2() );
- }
- wait(0.01);
- }
+
}
\ No newline at end of file