And maybe also check this documentation - Section 6.Program Compilation & Burning.
I'll go back to basics with this again tonight.
Also, Zhu got back to me from M5STACK and told me they are working on getting us an example code. Should be soon.
And maybe also check this documentation - Section 6.Program Compilation & Burning.
I'll go back to basics with this again tonight.
Also, Zhu got back to me from M5STACK and told me they are working on getting us an example code. Should be soon.
@felmue I am failing on compiling now.
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c: In function 'init_ckv_rmt':
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:181:53: error: 'const struct <anonymous>' has no member named 'module'
181 | periph_module_reset(rmt_periph_signals.groups[0].module);
| ^
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:182:54: error: 'const struct <anonymous>' has no member named 'module'
182 | periph_module_enable(rmt_periph_signals.groups[0].module);
| ^
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c: In function 'deinit_ckv_rmt':
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:216:53: error: 'const struct <anonymous>' has no member named 'module'
216 | periph_module_reset(rmt_periph_signals.groups[0].module);
| ^
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:217:55: error: 'const struct <anonymous>' has no member named 'module'
217 | periph_module_disable(rmt_periph_signals.groups[0].module);
| ^
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c: In function 'init_bus_gpio':
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:339:28: error: 'lcd_periph_signals' undeclared (first use in this function); did you mean 'rmt_periph_signals'?
339 | DATA_LINES[i], lcd_periph_signals.panels[0].data_sigs[i], false, false
| ^~~~~~~~~~~~~~~~~~
| rmt_periph_signals
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:339:28: note: each undeclared identifier is reported only once for each function it appears in
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c: In function 'init_lcd_peripheral':
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:487:26: error: 'lcd_periph_signals' undeclared (first use in this function); did you mean 'rmt_periph_signals'?
487 | periph_module_enable(lcd_periph_signals.panels[0].module);
| ^~~~~~~~~~~~~~~~~~
| rmt_periph_signals
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c: In function 'deinit_lcd_peripheral':
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:562:25: error: 'lcd_periph_signals' undeclared (first use in this function); did you mean 'rmt_periph_signals'?
562 | periph_module_reset(lcd_periph_signals.panels[0].module);
| ^~~~~~~~~~~~~~~~~~
| rmt_periph_signals
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c: In function 'epd_lcd_set_pixel_clock_MHz':
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:624:78: error: passing argument 4 of 'lcd_hal_cal_pclk_freq' makes pointer from integer without a cast [-Wint-conversion]
624 | = lcd_hal_cal_pclk_freq(&lcd.hal, 240000000, lcd.config.pixel_clock, flags, &clk_div);
| ^~~~~
| |
| int
In file included from c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:49:
C:\Users\radgh\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-2f7dcd86-v1\esp32s3/include/hal/include/hal/lcd_hal.h:47:129: note: expected 'hal_utils_clk_div_t *' but argument is of type 'int'
47 | uint32_t lcd_hal_cal_pclk_freq(lcd_hal_context_t hal, uint32_t src_freq_hz, uint32_t expect_pclk_freq_hz, hal_utils_clk_div_t lcd_clk_div);
| ~~~~~~~~~~~^
c:\Users\radgh\Documents\Arduino\libraries\epdiy\src\output_lcd\lcd_driver.c:624:11: error: too many arguments to function 'lcd_hal_cal_pclk_freq'
624 | = lcd_hal_cal_pclk_freq(&lcd.hal, 240000000, lcd.config.pixel_clock, flags, &clk_div);
| ^
C:\Users\radgh\AppData\Local\Arduino15\packages\esp32\tools\esp32-arduino-libs\idf-release_v5.4-2f7dcd86-v1\esp32s3/include/hal/include/hal/lcd_hal.h:47:10: note: declared here
47 | uint32_t lcd_hal_cal_pclk_freq(lcd_hal_context_t hal, uint32_t src_freq_hz, uint32_t expect_pclk_freq_hz, hal_utils_clk_div_t lcd_clk_div);
| ^~~~~~~~~~~~~~~~~~~~~
exit status 1
Compilation error: exit status 1
In my novice mind, this looks like undeclared variables... in the epdiy library? I performed a 'git bash' on the epdiy library to get the right version. the "git reset" command from the setup instructions. Going to check out the rest of your suggestions now.
Picture just in case this helps.
@felmue Thank you for your reply! I will check this when I get back to my workstation tonight. I will keep you posted!
Below is my code for Arduino. I have it set up from the website (libraries, boards, settings) including the older EPDiy library. I am getting beeps. I am getting communication between the device and the IDE on the Serial Monitor. Just no screen. I get lines on startup (screen clearing, seemingly), but nothing after that. Can you tell me what I am doing wrong? Thanks!
This too:
You can see the picture says ESP32S3 Dev Module. I also tried using M5Stack M5PaperS3 as the board. Tried multiple USB Ports. It communicates, I said that... I am just stuck. Please help if you can. Thank you all!
Here is my code:
#define M5STACK_PAPERS3
#include <M5Unified.h>
void setup() {
Serial.begin(115200);
delay(500);
Serial.println("Starting M5Stack PaperS3 Test");
auto cfg = M5.config();
M5.begin(cfg);
M5.Display.setRotation(0);
M5.Display.setTextSize(3);
M5.Display.setTextColor(TFT_BLACK);
M5.Speaker.tone(2000, 100);
}
void loop() {
Serial.println("Refreshing e-ink display...");
M5.Display.startWrite();
M5.Display.fillScreen(TFT_WHITE); // Clear screen
M5.Display.setCursor(40, 120);
M5.Display.print("Hello World!");
M5.Display.endWrite(); // Push to e-ink screen
M5.Speaker.tone(2500, 100);
Serial.println("Done updating.");
delay(2000);
}
Does the PaperS3 have the capability to scan/communicate with Bluetooth capable devices?