Right now we have pins named D0 ..... D39
Is there an option in boards file or somewhere else, to have pins named like:
ADC1 pointing to D36, would be readAnalog(ADC1)
...
ADC4 pointing to D32
...
DAC1 pointing to D25
...
For ESP8266 there is something like that in jswrap_nodemcu.c
Following this idea in general we could have a class called pins, where pins.ADC1 = D36
Any other suggestion ?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Right now we have pins named D0 ..... D39
Is there an option in boards file or somewhere else, to have pins named like:
ADC1 pointing to D36, would be readAnalog(ADC1)
...
ADC4 pointing to D32
...
DAC1 pointing to D25
...
For ESP8266 there is something like that in jswrap_nodemcu.c
Following this idea in general we could have a class called pins, where pins.ADC1 = D36
Any other suggestion ?