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
main.cpp
- Committer:
- POR09
- Date:
- 2017-12-11
- Revision:
- 0:cc3a5266b37f
File content as of revision 0:cc3a5266b37f:
#include "mbed.h"
DigitalOut led1(LED1);
DigitalOut led2(LED2);
DigitalOut led3(LED3);
BusOut M1 (D2,D3,D4,D5);
char pos[4]={0x05,0x06,0x0A,0x09};
//char pos1[4]={0x05,0x09,0x0A,0x06};
//int h,a;
int i;
int main()
{
while(1)
{
for(i=0;i<4;i++)
{
M1=0;
M1=pos[i];
led1=0;
led2=1;
wait(0.01);
}
// for(i=3;i==0;i--)
// {
// M1=pos[i];
// led2=0;
// led1=1;
// wait(0.01);
// }
}
}