This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <MeMCore.h> | |
MeBuzzer buzzer; | |
MeLineFollower lineFinder(PORT_2); | |
MeDCMotor motor1(M1); //Motor1 is Left Motor | |
MeDCMotor motor2(M2); //Motor2 is Left Motor | |
MeRGBLed led(0, 30); | |
void setup() { | |
led.setpin(13); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
# Set the URL of the page we want to scrape | |
url = "https://www.kitronik.co.uk/5632-klip-halo-for-the-bbc-microbit.html" | |
# Download the webpage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
# Set the URL of the page we want to scrape | |
url = "https://www.kitronik.co.uk/5632-klip-halo-for-the-bbc-microbit.html" | |
# Download the webpage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
# Set the URL of the page we want to scrape | |
url = "https://www.kitronik.co.uk/5632-klip-halo-for-the-bbc-microbit.html" | |
# Download the webpage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
# Set the URL of the page we want to scrape | |
url = "https://www.kitronik.co.uk/5632-klip-halo-for-the-bbc-microbit.html" | |
# Download the webpage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
# Set the URL of the page we want to scrape | |
url = "https://www.kitronik.co.uk/5632-klip-halo-for-the-bbc-microbit.html" | |
# Download the webpage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'httparty' | |
require 'nokogiri' | |
# Set the URL of the page we want to scrape | |
url = "https://www.kitronik.co.uk/5632-klip-halo-for-the-bbc-microbit.html" | |
# Download the webpage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int buzzer = 9; //buzzer to arduino pin 9 | |
void setup() { | |
pinMode(buzzer, OUTPUT); // Set buzzer - pin 9 as an output | |
} | |
void loop() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Copyright 2018 Brian Mudd | |
I hear of a lot of people trying to set up multiple timers in their sketches. | |
I find the following works very well. It uses the same principle as industrial PLC's. | |
This allows any number of timers with a resolution of 0.1s and time out values up to 109 minutes | |
(cascading timers for longer values). | |
*/ |