Skip to Content
Tkinter GUI Application Development Blueprints, Second Edition - Second Edition
book

Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

by Bhaskar Chaudhary
March 2018
Beginner to intermediate
422 pages
10h 33m
English
Packt Publishing
Content preview from Tkinter GUI Application Development Blueprints, Second Edition - Second Edition

Writing the Arduino sketch

In the Arduino world, programs that you upload to the microcontroller are called sketches. You can write these sketches in a free integrated development environment (IDE) which can be downloaded from here: https://www.arduino.cc/en/Main/Software

Once you finalize a program, you upload it to your Arduino board using the upload button on the IDE and voila: your board starts doing what you asked it to do.

Every Arduino sketch will have two methods where you get to define the logic of your program:

  • setup(): For one-time initialization
  • loop(): For things that the board keeps doing forever until it runs out of power

Here's the code that we upload to the Arduino (see 9.13.arduino_sketch.ino):

const int triggerPin = 8; ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Tkinter GUI Application Development Blueprints

Tkinter GUI Application Development Blueprints

Bhaskar Chaudhary

Publisher Resources

ISBN: 9781788837460Supplemental Content