Level 5 Session 1
Before we start
Declaring Pins
Using pinMode();
Configures the specified pin to behave either as an input or an output.
We have to learn how to declare pins
(Input / Output)
For Inputs
Then we will use some statement to turn on a LED
For Outputs
How to activate the buzzer
How to turn the LED ON/OFF
To activate the buzzer we will use the statement:
To turn the LED on you will use the statement:
tone(0,2093,1000);
digitalWrite(0, HIGH);
To turn the LED on you will use the statement:
digitalWrite(0, LOW);
How to use the Touch Sensor
To use the touch sensor we will use the statement:
digitalRead(A0,HIGH);
Lets make the first Project
Types of Programming Languages
There are 2 types of programming languages
What's Next?
Next time
Visual
Code
we will learn
How to create a variable and make some operations on it
Visual Programming
Is a very simple way for programming via Drag and Drop
But it's not customizable like coding.
Today we are going to learn:
Programming via coding
- Introduction to programming via code
Is a term used for the statements written in a particular programming language
- Difference between Visual and code
It's More customizable than Visual programming
- Digital read & Digital write
Programming
Programming is a creative process done by programmers to instruct a robot on how to do a task