Commit Graph

20 Commits

Author SHA1 Message Date
556e0786da Only get and convert time when using it 2023-10-28 17:33:49 +01:00
5c6a89df87 Ran clang-format 2023-10-28 17:28:13 +01:00
ebd2909d15 10 minute average complete
Need to actually test it. I'm never confident with programming
and definitely not when writing C
2023-10-28 17:25:08 +01:00
ac1fcbc5a5 I think this is the correct way to implement a rolling average
I can probably the time conversion part into the "saving" section when
that's done
2023-10-28 17:17:50 +01:00
bbfc55a066 Added SNTP and start of data logging 2023-10-28 13:40:19 +01:00
cf9a549cf2 Added Wifi
Seems to be working.

It's 90% the same code as the examples
2023-10-28 00:58:33 +01:00
e8c1dc0647 Added a random error checking function
Not actually sure I'll use it?
2023-10-25 22:11:04 +01:00
ce0de58466 Fleshing out some more parts 2023-10-25 21:43:47 +01:00
916e551d39 I think I've got something working
I can't believe it was that random stack size

I think at least... could be anything to be honest
2023-10-25 20:54:30 +01:00
a8c18feb81 I can't get this task stuff working
Going to try simplify it by not using group bits
2023-10-25 20:19:33 +01:00
6354e937fb Task management still not working
The DHT task (or whatever is called later) isn't actually re-entering (I think
that's the right term?)
2023-10-25 20:09:03 +01:00
90e4837851 Different stack trace now... 2023-10-25 19:55:54 +01:00
ae598ea5b9 Issues with stack traces when 3 tasks running
I think it could be with ISR... maybe? I'm not 100% what an interrupt
actually realy is
2023-10-25 19:50:10 +01:00
bef67215cb Created some tasks 2023-10-25 19:18:26 +01:00
5efca6b3c0 Figured out how to turn on PSRAM
Now it looks like you can just allocate from a regular "malloc"
Code ran successfully (afaict) when writing to 7MB - didn't seem
to when doing 8MB. Not 100% sure why, but I don't think it'll
matter tbh
2023-10-24 22:07:59 +01:00
d8c6ef5c8b Already found some bugs
Wish I could be writing this in rust
2023-10-23 22:36:19 +01:00
6b9ec20b72 Started some DHT22 stuff
Haven't tested it at all
2023-10-23 22:34:21 +01:00
c91a8fc729 Got the KConfig stuff to work
I didn't quite realise I needed to #include sdkconfig.h

I thought they were injected as -D flags for ... no reason really
2023-10-23 21:41:32 +01:00
92949ea84d Trying to get Kconfig to work
There's something wrong with the importing part I think
2023-10-23 21:30:38 +01:00
b48adeb547 Initial Commit 2023-10-23 20:35:50 +01:00