Commit Graph

16 Commits

Author SHA1 Message Date
6a3e39342e I think just being completely flexible about the setup timings just works
I wonder if I put too much trust into the datasheet? I don't know
2023-10-31 21:13:49 +00:00
36041e63d2 The reading doesn't work with WiFi enabled
Just get timing errors
2023-10-31 21:00:44 +00:00
03b4bc7e5a More cleanup and seems to be working 2023-10-31 20:42:29 +00:00
45d7001bb0 Working! and cleanup collapsed
got better results that passed checksum. NO idea why - I guess just being less
"strict" on what the high / low period was
2023-10-31 20:30:53 +00:00
822b73597e Looked into another DHT22 library for inspiration
Still not working and I really can't tell why
2023-10-30 23:37:36 +00:00
69a7732017 Can't believe I fucked the for loop like that
Well I can believe it
2023-10-30 22:58:28 +00:00
e139aa7e9c Every 4th byte comes back with zero time elapsed high.
Really don't know why
2023-10-30 22:13:16 +00:00
089d8a62f1 I get a timing error on every 4th bit
No idea why
2023-10-30 22:13:02 +00:00
6b40f97ba5 DHT22 is not working how I want it to
Need to keep debugging it... think of a different way to approach it maybe
2023-10-30 21:11:24 +00:00
5c6a89df87 Ran clang-format 2023-10-28 17:28:13 +01:00
e8c1dc0647 Added a random error checking function
Not actually sure I'll use it?
2023-10-25 22:11:04 +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