User manual

IDUINO for makers life
www.openplatform.cc
Example:
Wire connection as below:
Vcc--------------5V
GND--------------GND
S0--------------D3
S1--------------D4
S2--------------D5
S3--------------D6
OUT--------------D2
*******Code Begin*********
#include <TimerOne.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4);
#define S0 6
#define S1 5
#define S2 4
#define S3 3
#define OUT 2
//#define LED 7
int g_count = 0; // count the frequecy
int g_array[3]; // store the RGB value
int g_flag = 0; // filter of RGB queue
float g_SF[3]; // save the RGB Scale factor
// Init TSC230 and setting Frequency.
void TSC_Init()
{
pinMode(S0, OUTPUT);
pinMode(S1, OUTPUT);
pinMode(S2, OUTPUT);
pinMode(S3, OUTPUT);
pinMode(OUT, INPUT);
digitalWrite(S0, LOW);// OUTPUT FREQUENCY SCALING 2%
digitalWrite(S1, HIGH);
}