file_3665.txtPlain text
Code from
/* IRsendScout: adds "ir.send(p,c,b)" scout script command
 * Version 1.5 June 2014
 * Copyright 2014 by Chris Young
 * Based upon "Bootstrap.ino" by the Pinoccio team
 * Parameters are from protocol number 0-7, Up to 32 bit data,
 *  and number of bits for the protocols that required.
 * You must use 3 parameters therefore number of bits 
 * should be 0 if not needed. 
#include <SPI.h>
#include <Wire.h>
#include <Scout.h>
#include <GS.h>
#include <bitlash.h>
#include <lwm.h>
#include <js0n.h>

#include "version.h"

#include <IRLib.h> //Add IRLib library

IRsend My_Sender; //Create a sending object

numvar irSend (void) {
  unsigned char protocol = getarg(1);
  unsigned long code     = getarg(2);
  unsigned char bits     = getarg(3);
  Led.setColor(255,0,0);      //just to confirm it works, turn on red LED
  My_Sender.send((IRTYPES)protocol,code,bits); //Send it
  Led.turnOff();              //turn it off

void setup() {
  addBitlashFunction("ir.send", (bitlash_function)irSend);

void loop() {


Chris Young

Are you Chris Young? Claim this project and add it to your profile.

This is mine
Posted by Photo on 7 5 17 at 5 06 pm 7 05huowsyxv Alex Glow


Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback


Add projectSign up / Login