Esp32-c6 1.47 serial monitor

Hi After uploading the code serial monitor is blank, why is that ?

void setup() {
  // initialize serial communication at 115200 bits per second:
  Serial.begin(115200);

  //set the resolution to 12 bits (0-4095)
  analogReadResolution(12);
}

void loop() {
  // read the analog / millivolts value for pin 2:
  int analogValue = analogRead(2);
  int analogVolts = analogReadMilliVolts(2);

  // print out the values you read:
  Serial.printf("ADC analog value = %d\n", analogValue);
  Serial.printf("ADC millivolts value = %d\n", analogVolts);

  delay(100);  // delay in between reads for clear read from serial
}


may need to enable the serial monitor so
after Tools>Board selecting ESP32C6 Dev Board try selecting Tools > USB CDC On Boot > Enabled
recompile and upload program

Thanks, it is working.
Maybe you know a simple code for screen testing ?

what do you mean by screen testing?

Like print on the screen Hello world, I tried this one but can't get it working.

https://medium.com/@androidcrypto/getting-started-with-an-esp32-c6-waveshare-lcd-device-with-1-47-inch-st7789-tft-display-07804fdc589a

What exactly did you try ?

that tutorial is for a
ESP32-C6 Waveshare onboard 1.47 inch 172 x 320 pixels TFT display with an ST7789 driver
it that the TFT display you have? if not give a link to the TFT you are using?

I trying to get something like this but on esp display

I have this one.

which ESP and TFT display?
the ESP32 can be interfaced with many different TFT displays

It looks like the program you referenced in post 5 should work on that ESP32C6/TFT device
what happened when you compiled, linked and uploaded the program?

  1. did it compile/link/upload OK?
  2. anything on TFT display?
  3. anything on serial monitor? e.g. did it go into a reset loop?

post the serial monitor output (as text not a screen image)?

I ot error

Error compiling for board ESP32C6 Dev Module.

there should be details of the error, e.g. messages such as

Compiling sketch...
"C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-rv32\\2411/bin/riscv32-esp-elf-g++" -MMD -c "@C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32c6/flags/cpp_flags" -w -Os -Werror=return-type -DF_CPU=160000000L -DARDUINO=10607 -DARDUINO_ESP32C6_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32C6_DEV\"" "-DARDUINO_VARIANT=\"esp32c6\"" -DARDUINO_PARTITION_default "-DARDUINO_HOST_OS=\"windows\"" "-DARDUINO_FQBN=\"esp32:esp32:esp32c6:UploadSpeed=921600,CDCOnBoot=default,CPUFreq=160,FlashFreq=80,FlashMode=qio,FlashSize=4M,PartitionScheme=default,DebugLevel=none,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default\"" -DESP32=ESP32 -DCORE_DEBUG_LEVEL=0 -DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 "@C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32c6/flags/defines" "-IF:\\Ardunio\\Networking\\WiFi\\ESP32\\ESP32C6_Dev_Board\\Blink_LED" -iprefix "C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32c6/include/" "@C:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32c6/flags/includes" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp32-arduino-libs\\idf-release_v5.5-b66b5448-v1\\esp32c6/qio_qspi/include" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\cores\\esp32" "-IC:\\Users\\bb\\AppData\\Local\\Arduino15\\packages\\esp32\\hardware\\esp32\\3.3.0\\variants\\esp32c6" "@C:\\Users\\bb\\AppData\\Local\\arduino\\sketches\\50D4570069D5E7BCA5C75EA57522AFF2/build_opt.h" "@C:\\Users\\bb\\AppData\\Local\\arduino\\sketches\\50D4570069D5E7BCA5C75EA57522AFF2/file_opts" "C:\\Users\\bb\\AppData\\Local\\arduino\\sketches\\50D4570069D5E7BCA5C75EA57522AFF2\\sketch\\Blink_LED.ino.cpp" -o "C:\\Users\\bb\\AppData\\Local\\arduino\\sketches\\50D4570069D5E7BCA5C75EA57522AFF2\\sketch\\Blink_LED.ino.cpp.o"
F:\Ardunio\Networking\WiFi\ESP32\ESP32C6_Dev_Board\Blink_LED\Blink_LED.ino:7:1: error: 'intx' does not name a type; did you mean 'int'?
    7 | intx led = LED_BUILTIN;
      | ^~~~
      | int

post the complete messages

Arduino: 1.8.13 (Windows 10), Board: "ESP32C6 Dev Module, Disabled, Enabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 160MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None, Disabled, Disabled"





















Warning: Board New folder:arduino:bt328 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_BT328

Warning: Board New folder:arduino:pro5v doesn't define a 'build.board' preference. Auto-set to: ARDUINO_PRO5V

Warning: Board New folder:arduino:bt doesn't define a 'build.board' preference. Auto-set to: ARDUINO_BT

Warning: Board New folder:arduino:diecimila doesn't define a 'build.board' preference. Auto-set to: ARDUINO_DIECIMILA

Warning: Board New folder:arduino:mini328 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_MINI328

Warning: Board New folder:arduino:atmega8 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_ATMEGA8

Warning: Board New folder:arduino:uno doesn't define a 'build.board' preference. Auto-set to: ARDUINO_UNO

Warning: Board New folder:arduino:lilypad doesn't define a 'build.board' preference. Auto-set to: ARDUINO_LILYPAD

Warning: Board New folder:arduino:mega doesn't define a 'build.board' preference. Auto-set to: ARDUINO_MEGA

Warning: Board New folder:arduino:fio doesn't define a 'build.board' preference. Auto-set to: ARDUINO_FIO

Warning: Board New folder:arduino:pro5v328 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_PRO5V328

Warning: Board New folder:arduino:lilypad328 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_LILYPAD328

Warning: Board New folder:arduino:nano328 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_NANO328

Warning: Board New folder:arduino:mega2560 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_MEGA2560

Warning: Board New folder:arduino:mini doesn't define a 'build.board' preference. Auto-set to: ARDUINO_MINI

Warning: Board New folder:arduino:pro doesn't define a 'build.board' preference. Auto-set to: ARDUINO_PRO

Warning: Board New folder:arduino:atmega168 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_ATMEGA168

Warning: Board New folder:arduino:nano doesn't define a 'build.board' preference. Auto-set to: ARDUINO_NANO

Warning: Board New folder:arduino:ethernet doesn't define a 'build.board' preference. Auto-set to: ARDUINO_ETHERNET

Warning: Board New folder:arduino:pro328 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_PRO328

Warning: Board New folder:arduino:atmega328 doesn't define a 'build.board' preference. Auto-set to: ARDUINO_ATMEGA328

Warning: Board New folder:attiny:attiny85-20 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY85-20

Warning: Board New folder:attiny:attiny44 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY44

Warning: Board New folder:attiny:attiny44-8 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY44-8

Warning: Board New folder:attiny:attiny45 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY45

Warning: Board New folder:attiny:attiny85-8 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY85-8

Warning: Board New folder:attiny:attiny84-8 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY84-8

Warning: Board New folder:attiny:attiny44-20 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY44-20

Warning: Board New folder:attiny:attiny84 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY84

Warning: Board New folder:attiny:attiny45-8 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY45-8

Warning: Board New folder:attiny:attiny84-20 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY84-20

Warning: Board New folder:attiny:attiny45-20 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY45-20

Warning: Board New folder:attiny:attiny85 doesn't define a 'build.board' preference. Auto-set to: ATTINY_ATTINY85

In file included from C:\Users\Galinka\Documents\Arduino\libraries\FastLED-master\src/platforms/esp/32/fastled_esp32.h:4,

                 from C:\Users\Galinka\Documents\Arduino\libraries\FastLED-master\src/platforms.h:44,

                 from C:\Users\Galinka\Documents\Arduino\libraries\FastLED-master\src/FastLED.h:87,

                 from C:\Users\Galinka\AppData\Local\Temp\arduino_modified_sketch_839302\SPIFFS_Test.ino:66:

C:\Users\Galinka\Documents\Arduino\libraries\FastLED-master\src/platforms/esp/32/fastpin_esp32.h:92:28: error: #if with no expression

   92 | #if CONFIG_IDF_TARGET_ESP32

      |                            ^

exit status 1

Error compiling for board ESP32C6 Dev Module.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

the code in post 5 uses the TFT_ESPI library which needs the TFT configuration setting up
did you follow the instructions in ESP32_C6_Waveshare_ST7789_Starter