From c0196f31a288c48d0a6e5fde641981881fc0b0ba Mon Sep 17 00:00:00 2001 From: midilab Date: Mon, 15 Apr 2024 15:33:56 -0300 Subject: [PATCH] added uClock.start() to generic example and README --- README.md | 7 ++++++- .../GenericMasterOrExternalSync.ino | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3b603b6..d00f917 100755 --- a/README.md +++ b/README.md @@ -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 @@ -100,7 +104,8 @@ void setup() { uClock.setMode(uClock.EXTERNAL_CLOCK); } - uClock.init(); + // starts clock + uClock.start(); } void loop() { diff --git a/examples/GenericMasterOrExternalSync/GenericMasterOrExternalSync.ino b/examples/GenericMasterOrExternalSync/GenericMasterOrExternalSync.ino index 5f1c677..366e938 100644 --- a/examples/GenericMasterOrExternalSync/GenericMasterOrExternalSync.ino +++ b/examples/GenericMasterOrExternalSync/GenericMasterOrExternalSync.ino @@ -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 @@ -46,7 +50,8 @@ void setup() { uClock.setMode(uClock.EXTERNAL_CLOCK); } - uClock.init(); + // starts clock + uClock.start(); } void loop() {