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.
main.cpp
- Committer:
- gkumar
- Date:
- 2016-06-02
- Revision:
- 0:77f0cd7817c9
File content as of revision 0:77f0cd7817c9:
switch (reset)
{
case 01: PIN70=1; //ENABLE_BAR Att Sens 1
break;
case 02: PIN90=1; //ENABLE_BAR Att Sens 2
break;
case 03: PIN82=0; //DRV_XY Fault bar
wait(1);
PIN82=1; // Toggle DRV_XY sleep
break;
case 04: PIN88=0; //DRV_Z Fault bar
wait(1);
PIN88=1; // Toggle DRV_Z sleep
break;
case 05: PIN71=0; //DRV_switch_XY Fault bar
break;
case 06: PIN40=0; //DRV_switch_Z Fault bar
break;
case 07: PIN71=1; //Turn on DRV_switch_XY -on TC
break;
case 08: PIN40=1; //Turn on DRV_switch_Z -when called for Z axis moment alone
break;
case 09: PIN14=1; //Beacon switch
wait(1);
PIN14=0; // Toggle
break;
}
switch(in) {
case 'h':
case 'H':
out = 1;
break;
case 'l':
case 'L':
out = 0;
break;
case 's':
case 'S':
sing();
break;
default:
pc.printf("I don't know: \"%c\"\n", in);
}