esp-idf-ssd1306/MeterDemo
2022-05-01 20:14:37 +09:00
..
main Changed from ADC_WIDTH_BIT_12 to ADC_WIDTH_BIT_DEFAULT 2022-05-01 20:14:37 +09:00
CMakeLists.txt Added MeterDemo 2022-05-01 16:53:25 +09:00
README.md Changed from ADC_WIDTH_BIT_12 to ADC_WIDTH_BIT_DEFAULT 2022-05-01 20:14:37 +09:00

MeterDemo for SSD1306

MeterDemo

I borrowed the BIT MAP data from here.

This sample shows how to quickly redraw a BITMAP image.
High-speed drawing is possible by converting BITMAP data to Page and Segment.
You can use ssd1306_bitmaps function as converter.

You will need an analog source to run this demo.
Connect the analog source to the following GPIO.
These are all channel 0 of ADC1.

  • Analog input gpio for ESP32 is GPIO36. 12Bits width.
  • Analog input gpio for ESP32S2 is GPIO01. 13Bits width.
  • Analog input gpio for ESP32S3 is GPIO01. 12Bits width.
  • Analog input gpio for ESP32C3 is GPIO00. 12Bits width.

Schematic I used:

ESP32 3V3 ----------- CDS ---+---+
                             |   |
ESP32 Analog input ----------+   |
                                 |
ESP32 GND ------ Register -------+