Skip to content

Commit

Permalink
Update gdma_lcd_parallel16.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcodetastic committed Jul 22, 2024
1 parent 16f3566 commit c4ecdcf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platforms/esp32s3/gdma_lcd_parallel16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@
{

auto freq = (_cfg.bus_freq);
auto _div_num = 20; // 8Mhz
if (freq < 20000000L) {
auto _div_num = 16; // 10Mhz
if (freq <= 10000000L) {
} else if (freq < 20000000L) {
_div_num = 10; // 16Mhz
} else {
_div_num = 7; // 22Mhz --- likely to have noise without a good connection
Expand Down

0 comments on commit c4ecdcf

Please sign in to comment.