Commit Graph

10 Commits

Author SHA1 Message Date
Maurice Makaay 4c5ea8c001 Backup work on making the application state a separate class, so I can keep all state knowledge in one place. 2020-07-19 01:14:28 +02:00
Maurice Makaay 578c0aa626 Made the physical led entries private in the UI class, now they are shielded by logical functions. 2020-07-15 03:07:08 +02:00
Maurice Makaay fd1363dd45 Further cleanup. Most noticably is moving all physical LED logic into the Dough::UI class, providing app-state-dependent logical functions for letting the LEDs represent a given application state. 2020-07-15 02:48:44 +02:00
Maurice Makaay 19f754b577 Okay, got some things working again. At least the device doesn't crash anymore :-) The sensors need some work to give correct readings in the new setup. It looks like I'm initializing them twice or so. Fix will follow in the next commit. 2020-07-14 15:28:20 +02:00
Maurice Makaay 49115a0545 Stashing this as a feature branch, something's broken in the MQTT department and I first have to find out what. 2020-07-14 01:21:07 +02:00
Maurice Makaay a31840c479 Completed moving all code into its own Dough namespace, to prevent naming clashes with stuff like WiFi and DHT11. 2020-07-12 22:41:23 +02:00
Maurice Makaay 3f8eb8b2b8 Going to see if namespaces help structuring the code. 2020-07-12 01:52:08 +02:00
Maurice Makaay 9db52bad08 Another round of code cleanup. 2020-07-12 01:35:07 +02:00
Maurice Makaay 10f8fc2290 Extracted the logging functionality into a separate logger, making it easier to log info per module. This also drags less of the UI functionality into low level modules, which seems a lot cleaner to me. 2020-07-11 02:13:36 +02:00
Maurice Makaay e66b8ccdd5 Code formatting and structuring the project. 2020-07-09 21:09:46 +02:00