ENGR 7B Lecture Notes - Lecture 1: Computer Language, Semicolon, Error Bar

31 views3 pages
12 Jan 2017
School
Department
Course
Professor
ENGR 7B Lab Intro to Arduino
IDE
Integrated Development Environment
Text program allowing you to write code to instill in Arduino
Opening up Arduino program = opening up IDE
Job includes taking human readable code we write and converting it into
commands the computer can follow (machine-readable)
o This job is called compiling
Sketch
When you save a file in Arduino, it is called a “sketch”
o Contains all the computer code that you’ve written
o File extension is “.ino”
Used to be “.pde”
Language
Very similar to C++
Basic concepts are exactly the same
Code written will be human-readable
o Will be organized for humans to follow with ease
IDE Interface
All default sketch names are “sketch_date”
o Ex: sketch_jan12a
o Ex: sketch_dec19b
o How to change?
o Go to save and change name
Note you cannot have spaces in name of Arduino program
Ex: Hello World = not accepted
Ex: Hello_World = valid
Buttons
o Verify = checks the code for any messages and displays errors on bottom
screen
o Upload = uploads code onto the Arduino board
How to know if it’s working?
When plugged in, two LEDs will be blinking very fast
Tx and Rx
o Transmit and receive
o Serial Monitor = opens up serial monitor window and allows you to see
connection between computer and Arduino
find more resources at oneclass.com
find more resources at oneclass.com
Unlock document

This preview shows page 1 of the document.
Unlock all 3 pages and 3 million more documents.

Already have an account? Log in

Get OneClass Notes+

Unlimited access to class notes and textbook notes.

YearlyBest Value
75% OFF
$8 USD/m
Monthly
$30 USD/m
You will be charged $96 USD upfront and auto renewed at the end of each cycle. You may cancel anytime under Payment Settings. For more information, see our Terms and Privacy.
Payments are encrypted using 256-bit SSL. Powered by Stripe.