Keyestudio KS0436 Kit Manual page 166

Table of Contents

Advertisement

166
1) Connect the
REV4
Board to a USB port on your computer.
Upload Code:
2) Open the program in the code folder- Circuit 14, or directly copy and
paste the code below on the Ardunio IDE.
3) Select UPLOAD to program the sketch on the UNO Board.
int LedPinA = 5;
int LedPinB = 6;
int ButtonPinA = 7;
int ButtonPinB = 4;
int buttonStateA = 0;
int buttonStateB = 0;
int brightnessA = 0;
int brightnessB= 255;
void setup()
{
Serial.begin(9600);
pinMode(LedPinA, OUTPUT);
pinMode(LedPinB, OUTPUT);
pinMode(ButtonPinA, INPUT);
pinMode(ButtonPinB, INPUT);

Advertisement

Table of Contents
loading

Table of Contents