summaryrefslogtreecommitdiff
path: root/src/org/usfirst/frc/team4272/robotlib/PushButton.java
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-02-21 01:57:06 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-02-21 01:57:06 -0500
commit9670a734f62f23c982c43697c074563eb2baf9c0 (patch)
treec364980a0cf833356950ab8fdf61403ef11dde98 /src/org/usfirst/frc/team4272/robotlib/PushButton.java
parent273d09797d76206af2fbbc793cad85fb92665a3a (diff)
Write javadocs for robotlib.
Diffstat (limited to 'src/org/usfirst/frc/team4272/robotlib/PushButton.java')
-rw-r--r--src/org/usfirst/frc/team4272/robotlib/PushButton.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/usfirst/frc/team4272/robotlib/PushButton.java b/src/org/usfirst/frc/team4272/robotlib/PushButton.java
index f6615ff..acfe89f 100644
--- a/src/org/usfirst/frc/team4272/robotlib/PushButton.java
+++ b/src/org/usfirst/frc/team4272/robotlib/PushButton.java
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2015-2016 Luke Shumaker.
+ * Copyright (c) 2015-2017 Luke Shumaker.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -29,7 +29,11 @@
package org.usfirst.frc.team4272.robotlib;
/**
- * TODO: Write JavaDocs
+ * PushButton fires an event on-button-down.
+ *
+ * In each iteration of the main loop, call the
+ * {@link #update(boolean)} method with the current button state. It
+ * will return whether or not an event should be fired this iteration.
*/
public class PushButton {
private boolean prev = false;