]> hydra-www.ietfng.org Git - acmetensortoys-esp-lua_ctfws/commitdiff
examples/ctfws: README changes
authorNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 18 Feb 2017 07:31:35 +0000 (02:31 -0500)
committerNathaniel Wesley Filardo <nwf@cs.jhu.edu>
Sat, 18 Feb 2017 07:31:35 +0000 (02:31 -0500)
Notably, document the next "/config" field.
While here, add a table of GPIO pin purposes

README.rst

index 2455c24cfb40266d2cef3a61da2f3d1808577832..ad9be895773bc75bb36f40f8e944d91db2ad5f61 100644 (file)
@@ -29,6 +29,12 @@ Centrally-set topics:
 
   * ``nflags`` -- number of flags per team
 
+  * ``gamecounter`` -- (integer) which game in a bunch is this?  Since often
+    several are played in a night, it is likely useful to indicate to clients
+    which game this is.  The value ``0`` may be interpreted as suppressing
+    indication in the client; we ``1``-index games to be friendly to people.
+    ;)
+
   * any additional fields are to be ignored.
 
 * ``ctfws/game/flags`` -- the string ``?`` or a whitespace-separated text field:
@@ -210,6 +216,42 @@ One possible instantiation, just as a baseline:
 |   | TOTAL                                                       | 15.50 |
 +---+-------------------------------------------------------------+-------+
 
+NodeMCU Pinout
+==============
+
++------+--------------------------------------+
+| GPIO | Purpose                              |
++------+--------------------------------------+
+|    0 | FLASH (button)                       |
++------+--------------------------------------+
+|    1 | Reserved for Lua console TX via USB  |
++------+--------------------------------------+
+|    2 | Free for good use                    |
++------+--------------------------------------+
+|    3 | Reserved for Lua console RX via USB  |
++------+--------------------------------------+
+|    4 | I2C SDA for LCD-driving I/O expander |
++------+--------------------------------------+
+|    5 | I2C SCL for LCD-driving I/O expander |
++------+--------------------------------------+
+|    9 | Free for good use                    |
++------+--------------------------------------+
+|   10 | Free for good use                    |
++------+--------------------------------------+
+|   12 | free for good use                    |
++------+--------------------------------------+
+|   13 | free for good use                    |
++------+--------------------------------------+
+|   14 | beeper active-low                    |
++------+--------------------------------------+
+|   15 | free for good use                    |
++------+--------------------------------------+
+|   16 | ESP8266 WAKE; free for good use      |
++------+--------------------------------------+
+
+* ADC0 is also free at the moment.
+
+
 Character Display
 =================