Class lab7Driver

java.lang.Object
  extended by lab7Driver

public class lab7Driver
extends java.lang.Object


Constructor Summary
lab7Driver()
           
 
Method Summary
static void main(java.lang.String[] args)
          Main method Create the frame to be displayed Configure the window to display the frame Enter the sensor loop that will continuously update the display
static void mySleep(int i)
          Sleep for a specified amount of time.
static void sensorLoop(FinchDisplayAbstract display, finch.Finch myFinch)
          Sensor loop: continually read the sensor values from the Finch and display them.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

lab7Driver

public lab7Driver()
Method Detail

mySleep

public static void mySleep(int i)
Sleep for a specified amount of time.

Parameters:
i - Number of milliseconds to sleep

sensorLoop

public static void sensorLoop(FinchDisplayAbstract display,
                              finch.Finch myFinch)
Sensor loop: continually read the sensor values from the Finch and display them. In addition, set the Finch LED state to that indicated by the slider bars.

Parameters:
display - The frame being displayed in the window
myFinch - A reference to the Finch object

main

public static void main(java.lang.String[] args)
Main method

  1. Create the frame to be displayed
  2. Configure the window to display the frame
  3. Enter the sensor loop that will continuously update the display

Parameters:
args - Arguments are ignored