run on esp32 feather

This commit is contained in:
lady ada 2022-01-15 12:47:23 -05:00
parent a25a7b8241
commit 0c8b83e48c
3 changed files with 18 additions and 14 deletions

View file

@ -86,6 +86,10 @@ RP2040 does not have official Arduino support (yet).
```python3 parser.py "Adafruit QT Py ESP32 Pico.fzpz" None -a ../../ArduinoSketches/hardware/espressif/esp32/variants/adafruit_qtpy_esp32 esp32pins.csv```
```python3 parser.py "Adafruit ESP32 Feather V2.fzpz" None -a ../../ArduinoSketches/hardware/espressif/esp32/variants/adafruit_feather_esp32_v2 esp32pins.csv```
```python3 parser.py "Adafruit HUZZAH32 ESP32 Feather.fzpz" None -a ../../ArduinoSketches/hardware/espressif/esp32/variants/feather_esp32 esp32pins.csv```
#### nRF52:

View file

@ -1,4 +1,4 @@
GPIO,ADC,HS/QSPI,SDMMC,Touch,RTC,UART,Other,Input Only?
GPIO,ADC,HS/QSPI,SDMMC,Touch,RTC,UART,Other,Special
0,ADC2_CH1,,,T1,RTC11,,CLK_OUT1,
1,,,,,,U0TXD,CLK_OUT3,
2,ADC2_CH2,HSPIWP,HS2_DATA0,T2,RTC12,,,
@ -28,12 +28,12 @@ GPIO,ADC,HS/QSPI,SDMMC,Touch,RTC,UART,Other,Input Only?
27,ADC2_CH7,,,T7,RTC17,,,
32,ADC1_CH4,,,T9,RTC9,,32K_XP,
33,ADC1_CH5,,,T8,RTC8,,32K_XN,
34,ADC1_CH6,,,,RTC4,,VDET1,Yes
35,ADC1_CH7,,,,RTC5,,VDET2,Yes
36,ADC1_CH0,,,,RTC0,,SENSE_V+-,Yes
37,ADC1_CH1,,,,RTC1,,SENSE_CAP+-,Yes
38,ADC1_CH2,,,,RTC2,,SENSE_CAP+AC0-,Yes
39,ADC1_CH3,,,,RTC3,,SENSE_V+AC0-,Yes
34,ADC1_CH6,,,,RTC4,,VDET1,Input Only
35,ADC1_CH7,,,,RTC5,,VDET2,Input Only
36,ADC1_CH0,,,,RTC0,,SENSE_V+,Input Only
37,ADC1_CH1,,,,RTC1,,SENSE_CAP+,Input Only
38,ADC1_CH2,,,,RTC2,,SENSE_CAP-,Input Only
39,ADC1_CH3,,,,RTC3,,SENSE_V-,Input Only
,,,,,,,,
,,,,,,,,
,,,,,,,,

1 GPIO ADC HS/QSPI SDMMC Touch RTC UART Other Input Only? Special
2 0 ADC2_CH1 T1 RTC11 CLK_OUT1
3 1 U0TXD CLK_OUT3
4 2 ADC2_CH2 HSPIWP HS2_DATA0 T2 RTC12
28 27 ADC2_CH7 T7 RTC17
29 32 ADC1_CH4 T9 RTC9 32K_XP
30 33 ADC1_CH5 T8 RTC8 32K_XN
31 34 ADC1_CH6 RTC4 VDET1 Yes Input Only
32 35 ADC1_CH7 RTC5 VDET2 Yes Input Only
33 36 ADC1_CH0 RTC0 SENSE_V+- SENSE_V+ Yes Input Only
34 37 ADC1_CH1 RTC1 SENSE_CAP+- SENSE_CAP+ Yes Input Only
35 38 ADC1_CH2 RTC2 SENSE_CAP+AC0- SENSE_CAP- Yes Input Only
36 39 ADC1_CH3 RTC3 SENSE_V+AC0- SENSE_V- Yes Input Only
37
38
39

View file

@ -405,14 +405,14 @@ int main(void) {
###################################################### SAMDxx board variant handler
elif "esp32" in variantfolder.lower():
for conn in connections:
#print(conn['name'])
print(conn['name'])
# digital pins
matches1 = re.match(r'(GPIO|IO|D|#)([0-9]+)', conn['name'])
if matches1:
#print(matches)
digitalname = matches1.group(2)
conn['pinname'] = pinmap[int(digitalname)]
conn['arduinopin'] = digitalname
iomatches = re.match(r'(GPIO|IO|D|I|#)([0-9]+)', conn['name'])
if iomatches:
print(iomatches)
digitalname = iomatches.group(2)
conn['pinname'] = digitalname
#conn['arduinopin'] = digitalname
longest_arduinopin = max(longest_arduinopin, len(digitalname))
else:
conn['pinname'] = conn['name']