Skip to content

Commit

Permalink
Change example program accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Sommer committed Apr 18, 2013
1 parent ed9d6a8 commit 64244fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ int main()
for (int i=0; i<3; i++)
{
// delete(a[i]);
a[i]->Period(20000000);
a[i]->Period_ns(20000000);
//usleep(100000); //pausa de 0.1s=100,000us
a[i]->DutyA( 1000000);
a[i]->DutyA_ns(1000000);
//usleep(100000); //pausa de 0.1s=100,000us
a[i]->DutyB( 1000000);
a[i]->DutyB_percent(1000000);
//usleep(100000); //pausa de 0.1s=100,000us
a[i]->PolarityA(1);
a[i]->PolarityA(cPWM::cPWM::ActiveHigh);
//usleep(100000); //pausa de 0.1s=100,000us
a[i]->RunA();
//usleep(100000); //pausa de 0.1s=100,000us
Expand Down

0 comments on commit 64244fb

Please sign in to comment.