aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelene ToyKeeper2017-08-19 12:11:04 -0600
committerSelene ToyKeeper2017-08-19 12:11:04 -0600
commit34191743a11e5039c6d465eb89c708f890f4050c (patch)
treee9e10298bf04a4b971f72dac685c9d10726a8002
parentMade LVP work. (diff)
downloadanduril-34191743a11e5039c6d465eb89c708f890f4050c.tar.gz
anduril-34191743a11e5039c6d465eb89c708f890f4050c.tar.bz2
anduril-34191743a11e5039c6d465eb89c708f890f4050c.zip
Added missing GPL header, fixed typo, fixed missing return.
-rw-r--r--RoundTable/momentary.c3
-rw-r--r--RoundTable/round-table.c23
2 files changed, 25 insertions, 1 deletions
diff --git a/RoundTable/momentary.c b/RoundTable/momentary.c
index a40363a..fcf0780 100644
--- a/RoundTable/momentary.c
+++ b/RoundTable/momentary.c
@@ -1,7 +1,7 @@
/*
* Momentary: Very simple example UI for RoundTable.
* Is intended to be the simplest possible RT e-switch UI.
- * The light is in while the button is held; off otherwise.
+ * The light is on while the button is held; off otherwise.
*
* Copyright (C) 2017 Selene ToyKeeper
*
@@ -59,6 +59,7 @@ uint8_t momentary_state(EventPtr event, uint16_t arg) {
else if (event == EV_debug) {
//PWM1_LVL = arg&0xff;
DEBUG_FLASH;
+ return 0;
}
// event not handled
diff --git a/RoundTable/round-table.c b/RoundTable/round-table.c
index 4d2d14e..b18228d 100644
--- a/RoundTable/round-table.c
+++ b/RoundTable/round-table.c
@@ -1,3 +1,26 @@
+/*
+ * RoundTable: Generic foundation code for e-switch flashlights.
+ * Other possible names:
+ * - Mostly Harmless
+ * - FSM / SpaghettiMonster
+ * - ...
+ *
+ * Copyright (C) 2017 Selene ToyKeeper
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
#include "tk-attiny.h"
#include <avr/pgmspace.h>
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.