|
24 | 24 | //#include "soc/i2s_reg.h"
|
25 | 25 | //#include "soc/i2s_struct.h"
|
26 | 26 | //#include "soc/io_mux_reg.h"
|
| 27 | +#include "soc/gpio_periph.h" |
27 | 28 | #include "driver/gpio.h"
|
28 | 29 |
|
29 | 30 |
|
@@ -119,12 +120,12 @@ class VGA6MonochromeVGAMadnessMultimonitor : public VGAI2SOverlapping< BLpx1sz8s
|
119 | 120 | gpio_set_direction((gpio_num_t)pinOutputMap[i], (gpio_mode_t)GPIO_MODE_DEF_OUTPUT);
|
120 | 121 | //rtc_gpio_set_drive_capability((gpio_num_t)pinMap[i], (gpio_drive_cap_t)GPIO_DRIVE_CAP_3 );
|
121 | 122 | //signal_idx == 0x100, cancel output put to the gpio
|
122 |
| - gpio_matrix_out(pinOutputMap[i], 0x100, false, false); |
123 |
| - if ((frontGlobalColor[i % 6]>>(i/6))&1) gpio_matrix_out(pinOutputMap[i], deviceBaseIndex[1] + (i % 6), false, false); |
| 123 | + esp_rom_gpio_connect_out_signal(pinOutputMap[i], 0x100, false, false); |
| 124 | + if ((frontGlobalColor[i % 6]>>(i/6))&1) esp_rom_gpio_connect_out_signal(pinOutputMap[i], deviceBaseIndex[1] + (i % 6), false, false); |
124 | 125 | //modify background only if it is compatible with front color:
|
125 | 126 | //components of... (background MUST be in foreground) AND (foreground MUST SURPASS background)
|
126 | 127 | if ( ((backGlobalColor[i % 6] & frontGlobalColor[i % 6]) == backGlobalColor[i % 6]) && ( (frontGlobalColor[i % 6] & ((backGlobalColor[i % 6] & frontGlobalColor[i % 6])^0b00000111))>0) )
|
127 |
| - if ((backGlobalColor[i % 6]>>(i/6))&1) gpio_matrix_out(pinOutputMap[i], deviceBaseIndex[1] + (8*bytesPerBufferUnit()-2), (mode.hSyncPolarity==1)?false:true, false); |
| 128 | + if ((backGlobalColor[i % 6]>>(i/6))&1) esp_rom_gpio_connect_out_signal(pinOutputMap[i], deviceBaseIndex[1] + (8*bytesPerBufferUnit()-2), (mode.hSyncPolarity==1)?false:true, false); |
128 | 129 | }
|
129 | 130 | startTX();
|
130 | 131 | return true;
|
|
0 commit comments