added uClock.start() to generic example and README

pull/44/head v2.1.0
midilab 7 months ago
parent 778868e2f4
commit c0196f31a2
  1. 7
      README.md
  2. 7
      examples/GenericMasterOrExternalSync/GenericMasterOrExternalSync.ino

@ -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() {

@ -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() {

Loading…
Cancel
Save