Code Monkey home page Code Monkey logo

bios-hardware-recruitment-task's Introduction

C P Ghanshyam

AM.EN.U4CSE20118

Task 1

  • Open TinkerCAD.
  • Create a new circuit.
  • Take a ARDUINO Chip and connect its GPIO pins to LED's via a breadboard.
  • Code the Chip to make the led's to blink one after the other

Code

void setup() {
  pinMode(5,OUTPUT);
  pinMode(6,OUTPUT);
  pinMode(7,OUTPUT);
  pinMode(8,OUTPUT);
  pinMode(9,OUTPUT);
  pinMode(10,OUTPUT);
  pinMode(11,OUTPUT);
  pinMode(12,OUTPUT);
}

void loop() {
  digitalWrite(5,HIGH);
  delay(1000);
  digitalWrite(6,HIGH);
  digitalWrite(5,LOW);
  delay(1000);
  digitalWrite(7,HIGH);
  digitalWrite(6,LOW);
  delay(1000);
  digitalWrite(8,HIGH);
  digitalWrite(7,LOW);
  delay(1000);
  digitalWrite(9,HIGH);
  digitalWrite(8,LOW);
  delay(1000);
  digitalWrite(10,HIGH);
  digitalWrite(9,LOW);
  delay(1000);
  digitalWrite(11,HIGH);
  digitalWrite(10,LOW);
  delay(1000);
  digitalWrite(12,HIGH);
  digitalWrite(10,LOW);
  digitalWrite(11,LOW);
  delay(1000);
  digitalWrite(12,LOW);
}

Task 2

  • Solve the 1st Circuit to get the value of "a".
  • So we get the value as $(10011110)_{decimal}$ so we get a=158.
  • Similarly solve the circuits to obtain b.
  • We get the value of b as $(11001110)_{decimal}$ so we get b=206.

bios-hardware-recruitment-task's People

Contributors

shyam917 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.