Skip to content

Instantly share code, notes, and snippets.

@patdavid
Created December 9, 2016 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patdavid/6d4598267b19ff794ba4746668501f3e to your computer and use it in GitHub Desktop.
Save patdavid/6d4598267b19ff794ba4746668501f3e to your computer and use it in GitHub Desktop.

A test google link and some simple formatting.

A fenced code block, with language set to C++ ( ```C++):

#include "MIDIUSB.h"

#define ENCODER_PIN_A A3
#define ENCODER_PIN_B A2
#define NUMBER_CLICKS 30 // the number of clicks per rotation of the encoder

#define SLIDER_PIN A1
#define SLIDER_MAX 1015 // my fader has a tiny resistance when completely open

unsigned long loopTime;
uint8_t encoder_state_prev;
uint8_t encoder_pos_prev = 0;
uint8_t slider_7bit_prev = 0;

A test google link and some simple formatting.

A new paragraph.

Another fenced code block:

test

If you are seeing raw markdown above the test code block, something is amiss. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment