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

44 views3 pages
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 access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents