@TechDregs
  @TechDregs
Tech Dregs | Fixing a dumb mistake by making ESP32 use hardware SPI @TechDregs | Uploaded 11 months ago | Updated 2 hours ago
I noticed that my rifle chamber thermal probe updated very slowly. That's kind of dumb, since the ESP32 MCU I'm using is overkill for this application... but it's my own fault, since I was using software SPI for the display and that slowed everything else down. Adding just a few lines of code makes everything run way, way faster by implementing hardware SPI on custom pins (since the display is hardwired to use pins that are not the default).

The board is a Lilygo T-display (TTGO), and the factory firmware/demos are overly complicated and when I tried to use them, they use some custom library examples that got overwritten as soon as I updated the library. Using this method allows me to use the Adafruit library with zero issues.

Link to Arduino code: github.com/techdregs/Rifle_Chamber_Thermal_Probe

Prior videos on this probe:
youtu.be/-yuX355aYIU
youtu.be/OsugkdLJbJE

=== Timestamps ===
00:00 Introduction
00:27 Background and usefulness of the probe
02:00 The problem
02:44 ChatGPT fail
03:30 The fix (and why it wasn't right the first time)
04:45 Example of the difference hardware SPI makes
06:45 Code implementation
11:07 Conclusion
Fixing a dumb mistake by making ESP32 use hardware SPIA Modern Linux Demo: Video Editing/Gaming/Etc...

Fixing a dumb mistake by making ESP32 use hardware SPI @TechDregs

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER