change 303 example at readme with a ATOMIC version that fits teensy arm devices too

pull/7/head
midilab 3 years ago
parent e57cc8d89b
commit 0e7296ce58
  1. 3
      README.md

@ -169,8 +169,7 @@ uint16_t _step_length = STEP_MAX_SIZE;
// make sure all above sequencer data are modified atomicly only
// eg. ATOMIC(_sequencer[0].accent = true); ATOMIC(_step_length = 7);
uint8_t _tmpSREG;
#define ATOMIC(X) _tmpSREG = SREG; cli(); X; SREG = _tmpSREG;
#define ATOMIC(X) noInterrupts(); X; interrupts();
// shared data to be used for user interface feedback
bool _playing = false;

Loading…
Cancel
Save