From 2f9d1448d8f0f99381dfe42f0758f6c560a5c31a Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sun, 8 Sep 2024 14:49:56 -0600 Subject: [PATCH] Update for PNNL --- README.md | 9 +++++++++ badge.ino | 16 ++++++++-------- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index eee58b5..b63a7bc 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,12 @@ It runs on a [Badgy 2C](https://github.com/sqfmi/badgy). It cycles through various badges I need at various events, and has a tiny version of Zork in it. There's even an easter egg in there. + +Note To Self +============ + +The board type is "NodeMCU 1.0 (ESP-12E Module)". + +Seems like you have to hold the button in and flip the switch to "on" +in order for /dev/ttyUSB0 to show up. After a few seconds it goes into +sleep mode, so you have to time it just right to get the program to upload. diff --git a/badge.ino b/badge.ino index 64e172a..ce43897 100644 --- a/badge.ino +++ b/badge.ino @@ -19,25 +19,25 @@ #define len(a) (sizeof(a) / sizeof(*a)) -char *badges[][4] = { +const char *badges[][4] = { { "Neale", "Pickett", - "Los Alamos National Laboratory", - "Cyber Fire Lead", + "", + "", }, { "Neale", "Pickett", "Cybersecurity Educator", - "Los Alamos National Laboratory", + "Pacific Northwest National Lab", }, { "Neale", "Pickett", - "Los Alamos National Laboratory", + "Pacific Northwest National Lab", "", }, { "Neale", "Pickett", - "", + "Nerd", "", }, NULL @@ -47,8 +47,8 @@ int badgeno = 0; struct Room { - char *title; - char *description; + const char *title; + const char *description; int north, west, east, south; };