Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

EECS 1021 - Lab F: Arduino Hardware Student COPY (v1) 2023 Part 3: Timed Tasks & Arduino / Grove We will now modify the Timer

image text in transcribed

EECS 1021 - Lab F: Arduino Hardware Student COPY (v1) 2023 Part 3: Timed Tasks \& Arduino / Grove We will now modify the Timer task in Part 2 to make an LED blink with a period as described below. It is your job to extend the solution from Part 2 with what you know about the LED in Part 1 to make this happen. Hints: 1. ButtonTask is a good place to start. Modify it to be an "LEDTask" 2. Within LEDTask you should keep track of a state (i.e. an integer that alternates between 0 and 1). This should be a variable that is private to the LEDTask class. 3. Consider using a conditional statement inside of the overridden run method. If you follow those hints you will effectively be creating an LED state machine that is driven by the TimerTask. Remember state machines from EECS 1011? Yeah. They're important. We need them here for these labs, but also for your minor and major projects. Any solution that contains a loop (with or without sleep(0) will be graded with half marks. Full marks only if you use the Timer task approach. Use the TimerTask approach to flash an LED at a desired rate. Video: https://youtu.be/z2 Jq4HuAJj0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

U11 Informing Industry: Publicizing Contract Actions 317

Answered: 1 week ago