Add arduino-esp32 3.x compatibility.
This commit is contained in:
@ -40,9 +40,6 @@ also ledc also serial also SPIFFS
|
||||
( Map Arduino / ESP32 things to shorter names. )
|
||||
: pin ( n pin# -- ) swap digitalWrite ;
|
||||
: adc ( n -- n ) analogRead ;
|
||||
: duty ( n n -- ) 255 min 8191 255 */ ledcWrite ;
|
||||
: freq ( n n -- ) 1000 * 13 ledcSetup drop ;
|
||||
: tone ( n n -- ) 1000 * ledcWriteTone drop ;
|
||||
|
||||
( Basic Ardiuno Constants )
|
||||
0 constant LOW
|
||||
|
||||
Reference in New Issue
Block a user