5
4.
Usage
This Grove-Encoder is very easy to use with the
designed by seeedstudio. Simply connect this
module to the D2 connector of Base Shield and you can start using. The following is a introduction of how
.
This Circular LED bar consists of an Encoder and a
module. Connect the two modules
to Base shield as the following picture:
librarys and install them to your Arduino IDE.
Restart
the
Arduino
IDE
and
open
the
example
by
the
path :File->Examples->Encoder->EncodeCircuiBar.
#include <CircularLED.h>
#include <Encoder.h>
#include <TimerOne.h>
CircularLED circularLED
;
unsigned
int
LED
[
24
];
int
index_LED
;
void
setup
()
{
encoder
.
Timer_init
();
}