MintDuino by de Vinck Marc
Author:de Vinck, Marc...
Language: eng
Format: epub
Published: 2014-05-21T23:04:44.853000+00:00
Upload Your First Sketch
Now it’s time to upload the Subtask 1 program (sketch). You can download this sketch from http://examples.oreilly.com/0636920020882, or simply open your Arduino IDE and enter the following sketch/code:
// MintDuino NoteBook 1 – Subtask 1 int ledPin = 7; // Digital Pin 7 for LED anode connection int ledWaitMin = 2000; // Set minimum wait time to 2000 milliseconds void setup() { // use noise on pin 1 to generate a random number randomSeed(analogRead(1)); pinMode(ledPin, OUTPUT); } void loop() { // add random time of 0-5 seconds int ledWait = ledWaitMin + random(5000); // three fast blinks for (int count = 0; count < 3; count++) { digitalWrite(ledPin, HIGH); delay(250); digitalWrite(ledPin, LOW); delay(250); } delay(ledWait); // random amount of time passes digitalWrite(ledPin, HIGH); delay(2000); // wait 2 seconds after random lighting digitalWrite(ledPin, LOW); delay(5000); // wait 5 seconds before resetting }
Connect the FTDI Friend (or other FTDI adapter) to your MintDuino as seen in Figure 3-5. This connects your computer to the MintDuino so that you can upload the sketch. Remember that you’ll need to provide power to the MintDuino using the 9V battery!
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9918)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9797)
The Mikado Method by Ola Ellnestam Daniel Brolund(9780)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8303)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7784)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7764)
Grails in Action by Glen Smith Peter Ledbrook(7699)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7558)
Windows APT Warfare by Sheng-Hao Ma(6868)
Layered Design for Ruby on Rails Applications by Vladimir Dementyev(6602)
Blueprints Visual Scripting for Unreal Engine 5 - Third Edition by Marcos Romero & Brenden Sewell(6470)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6420)
Kotlin in Action by Dmitry Jemerov(5068)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(4320)
Functional Programming in JavaScript by Mantyla Dan(4040)
Solidity Programming Essentials by Ritesh Modi(4021)
WordPress Plugin Development Cookbook by Yannick Lefebvre(3812)
Unity 3D Game Development by Anthony Davis & Travis Baptiste & Russell Craig & Ryan Stunkel(3755)
The Ultimate iOS Interview Playbook by Avi Tsadok(3730)
