Implement notetaking app, ST7796 display with touch support, audio beep navigation, and video streaming

This commit is contained in:
Adolfo Reyna
2026-06-08 15:04:36 -04:00
parent 070390355e
commit 3356e5d4a2
30 changed files with 3983 additions and 71 deletions
+3 -2
View File
@@ -4,9 +4,10 @@ class BatteryMonitor:
"""Utility class for monitoring battery voltage and capacity on ESP32-S3-RLCD-4.2."""
def __init__(self, pin_num=4):
# Initialize ADC on GPIO 4 with 11dB attenuation
import sys
self.adc = ADC(Pin(pin_num))
self.adc.atten(ADC.ATTN_11DB)
if sys.platform == 'esp32':
self.adc.atten(ADC.ATTN_11DB)
def read_voltage(self):
"""Reads the battery voltage in Volts using internal calibration.