I have made a few working projects that do minor things such as varying blink rate on an ESP32, but need to go deeper.
I will take general advice (having looked at CLion page and the Esspressif page: https://docs.espressif.com/projects/esp ... clion.html and https://www.jetbrains.com/help/clion/esp-idf.html) on getting up to speed.
But my struggles seem to focus around transitioning Maven build tool for Java to CMake build tool for C language. Especially for adding headers/libraries.
For example, I would like to get the OLED Adafruit SSD1306 in my kit to work. I only have the code and instructions for use with the Aruduino IDE which I have not used and hope not to. Seems to require downloading some libraries and telling CLion somehow to use them and get the CMake to work. The sample code starts off:
Code: Select all
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// Declaration for an SSD1306 display connected to I2C (SDA, SCL pins)
#include <Wire.h>
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
#define SCREEN_WIDTH 128 // OLED display width, in pixels
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
Kent Hervey