Keywish Hummer-Bot-2.0 Instruction Manual page 82

Table of Contents

Advertisement

3.2.5.5 Software Design
3.2.5.5.1 Program flow chart
3.2.5.5.2 Program code
Code Path : "hummer-bot\Lesson\ModuleDemo\ IRremote\ IRremote.ino"
#include "IRremote.h"
#define INPUT1_PIN 6
#define INPUT2_PIN 10
#define INPUT4_PIN 9
#define INPUT3_PIN 5
int
RECV_PIN
=
12;//Define the infrared receiver pin to 12
long
expedite1
= 0x16;
long
expedite2
= 0x0D;
long
advence
= 0x18;
long
back
= 0x52;
long
stop
= 0x1C;
long
left
= 0x08;
long
right
= 0x5A;
static int
val
= 160;
IRremote
irrecv(RECV_PIN);
// PWMB
// DIRB --- right
// PWMA
// DIRA --- left
79

Advertisement

Table of Contents
loading

Related Products for Keywish Hummer-Bot-2.0

Table of Contents