I have esp32 module pic attached https://www.amazon.ca/Development-Wireless-Module-Bluetooth-Arduino/dp/B07HG5XHLB
i am facing 2 problems
- when i select board “ESP32 Dev Module from arduino IDE” and upload simple program “AnalogReadSerial” from examples, program successfully burned but module resets continuously and it shows in serial terminal
but when i select “ESP32 pico kit” from arduino baords same program “AnalogReadSerial” works perfectly
- I want to use graphics LCD 12864zw in SPI Mode with ESP32 pic attached http://www.bajdi.com/cheap-128x64-graphic-lcd-12864zw/
the code i m using is given below
#include "U8glib.h"
// display constructor for u8g library - this one depends on your type of display
// U8GLIB_ST7920_128X64 u8g(13, 11, 12, U8G_PIN_NONE);
// ESP32 pin 18,18,21
U8GLIB_ST7920_128X64 u8g(21, 19, 18, U8G_PIN_NONE);
//U8GLIB_ST7920_128X64 u8g(E, RW, RS, U8G_PIN_NONE);
void setup() {
Serial.begin(9600); // start serial port
// Select font =================================================================
//u8g.setFont(u8g_font_unifont);
u8g.setFont(u8g_font_courB10);
//u8g.setFont(u8g_font_7x14B);
//u8g.setFont(u8g_font_8x13);
u8g.setColorIndex(1); // Instructs the display to draw with a pixel on.
}
void loop() {
u8g.firstPage();
do {
draw();
} while( u8g.nextPage() );
}
void draw(){
u8g.drawFrame(0,0,128,22); // upper frame col/row
u8g.drawFrame(0,33,128,31); // lower frame
u8g.drawStr( 15, 10, "Temperature"); // do this for temperature
}
this program works perfectly with arduino nano but when i use it with ESP32 module it shows the error
Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tips on reducing it.
Error compiling for board ESP32 Dev Module.
anyone has idea about these two probelms