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:
- happy_alien
- Date:
- 2019-11-21
- Revision:
- 1:700f6e782bf9
- Parent:
- 0:fd27a92aaa8c
- Child:
- 2:538939bfd629
File content as of revision 1:700f6e782bf9:
#include "mbed.h"
// D20,D19,D18,D17,...
BusOut lb(D2,D3,D6,D9,D11,D12,A6,D13);
DigitalIn T1(A2), T2(A1);
void OneRunLightStep2();
int main()
{
while(1)
{
if (T1==0)
OneRunLightStep2();
}
}
void OneRunLightStep2()
{
if(lb==0)
lb=1;
else
lb=lb<<1; // Finster
wait_ms(500);
}