Skip to content

Commit

Permalink
added uClock.start() to generic example and README
Browse files Browse the repository at this point in the history
  • Loading branch information
midilab committed Apr 15, 2024
1 parent 778868e commit c0196f3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ void onClockStopCallback() {
}

void setup() {

// inits the clock library
uClock.init();

// avaliable resolutions
// [ uClock.PPQN_24, uClock.PPQN_48, uClock.PPQN_96, uClock.PPQN_384, uClock.PPQN_480, uClock.PPQN_960 ]
// not mandatory to call, the default is 96PPQN if not set
Expand All @@ -100,7 +104,8 @@ void setup() {
uClock.setMode(uClock.EXTERNAL_CLOCK);
}

uClock.init();
// starts clock
uClock.start();
}

void loop() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ void onClockStopCallback() {
}

void setup() {

// inits the clock library
uClock.init();

// avaliable resolutions
// [ uClock.PPQN_24, uClock.PPQN_48, uClock.PPQN_96, uClock.PPQN_384, uClock.PPQN_480, uClock.PPQN_960 ]
// not mandatory to call, the default is 96PPQN if not set
Expand All @@ -46,7 +50,8 @@ void setup() {
uClock.setMode(uClock.EXTERNAL_CLOCK);
}

uClock.init();
// starts clock
uClock.start();
}

void loop() {
Expand Down

0 comments on commit c0196f3

Please sign in to comment.