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.
Fork of NBoard_IHM_V2 by
Revision 10:4c838a5a5e42, committed 2016-10-01
- Comitter:
- gr66
- Date:
- Sat Oct 01 12:26:12 2016 +0000
- Parent:
- 9:375316eaff14
- Child:
- 11:7cfa7c991676
- Commit message:
- Exemple Programme IHM OK le 1/10/16 GR
Changed in this revision
| IHM.lib | Show annotated file Show diff for this revision Revisions of this file |
| Nboard.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/IHM.lib Fri Sep 30 22:28:37 2016 +0000 +++ b/IHM.lib Sat Oct 01 12:26:12 2016 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/teams/IUT-DE-CACHAN-GE1/code/IHM/#3c28615eb8ac +https://developer.mbed.org/teams/IUT-DE-CACHAN-GE1/code/IHM/#cd0f9e8c609b
--- a/Nboard.cpp Fri Sep 30 22:28:37 2016 +0000
+++ b/Nboard.cpp Sat Oct 01 12:26:12 2016 +0000
@@ -1,8 +1,6 @@
#include "IHM.h"
-
IHM ihm;
Serial pc(SERIAL_TX, SERIAL_RX);
-
int main()
{
unsigned char i=0,j;
@@ -21,25 +19,12 @@
while(1) {
wait(0.1);
printf("cod");
- i=ihm.COD_read();
-
+ i=ihm.COD_read();
j=ihm.JOG_read();
ihm.BAR_set((UINT16)(i));
ihm.LCD_gotoxy(0,0);
ihm.LCD_printf("Jog=%02d",j);
ihm.LCD_gotoxy(1,0);
ihm.LCD_printf("Cod=%03d",i);
- // a=robot.bp(0);
- // b=robot.bp(1);
- // c=robot.bp(2);
- // d=robot.bp(3);
- // robot.led(i);
- // robot.LCD_gotoxy(1,0);
- // robot.LCD_printf("B0=%dB1=%dB2=%dB3=%d",a,b,c,d);
- //pc.printf("jog %d \n",j);
}
}
-
-
-
-
