BitMaker-hub / NerdMiner_v2

Improved version of first ESP32 NerdMiner
Other
1.5k stars 268 forks source link

Dev add support 1.14 tt go display #160

Closed alexandresanlim closed 12 months ago

alexandresanlim commented 12 months ago

Hello! This is the tt go 1.14 display support.

Preview:

https://github.com/BitMaker-hub/NerdMiner_v2/assets/5353685/bc1f2ce1-7ccc-4355-bb7d-a2449b899237

Some few problems: On Clock Miner dont show btc price. On Global Stats dont show btc price and difficulty and global hashrate.

romanmashta commented 12 months ago

Looks nice. Those issues with btc price, I believe they are specific to device, not your particular implementation. Your code is correct. I'e used your screen implementation on T-Display v2 device, and btc price is displaying successfully. Interesting what is happening when price is fetching. Sad i dont have that device to test.

nitroxgas commented 11 months ago

I found this behavior in ESP32-wroom, and it was a lack of memory to process https. See that the block height value is the default. I solved it by destroying the background sprite after printing on the screen. This frees up the heap for httpclient to use. And I create it again before assembling the screen. The implementation is in the ESP32_2432S028R driver already in the repository.