Reviewer
Reviewer
pinMode() - to set up which pin we are width modulation hardware on the Arduino
going to use and how we intend to use it. microcontroller.
digitalWrite() - it is then possible to turn that pin on or analogReference() - the Arduino assumes a
off using the voltage range of between 0v and +5v.
digitalWrite() function.
Syntax - analogReference(type)
Syntax - digitalWrite(pin, state)
Mapping Values
map() - An alternative method would be to use the
map() function, which appropriately enough, is one
of the more useful functions for mapping sensor
values.
sizeof() - this function will return the total number of RAM—technically this is static or SRAM but it
bytes used in an array doesn’t really matter—that is used for storing data
and various microcontroller instructions like keeping
sizeof(flicker)/2 = 8 track of function calls while the microcontroller is
running..
for loop - to place multiple values into an array
The final type of memory on the ATmega328
char helloWorld[] = "Hello, world!"; - this array is an microcontroller is the 1024 bytes of EEPROM -
example of C-style text strings of the char data type short for electronically erasable program read-only
memory. This memory is also non-volatile, keeping
The string of text is a collection of 14 elements its data even when power is not present,
The strcpy_P() function will copy a target string a function called begin() that is a part of the
stored in program memory to a location in RAM LiquidCrystal library linked to the
memory. instance that we created called lcd.
buffer[] - dimension of 30 to temporarily store each servo motor is an easy motor to hook up and does
individual line of text in RAM. what it does with ease,
delayMicroseconds()
- function to delay for a much shorter time.
syntax:
"delayMicroseconds(time)"
*(1000 microseconds = 1 millisecond or 0.001 of a
second)
random()
- function returns a semi-random number up to the
parameters specified
#include<LibraryName.h>