Skip to content

Commit 13f5dfb

Browse files
BREAKING - analogWriteRange 8-bit default
Matching standard Arduino cores, make the default analogWrite() take values from 0...255. Users can always use the analogWriteRange() call to change to a different setup. Fixes esp8266#2895
1 parent a6ccad4 commit 13f5dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/Arduino.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ extern "C" {
4343
#define HIGH 0x1
4444
#define LOW 0x0
4545

46-
#define PWMRANGE 1023
46+
#define PWMRANGE 255
4747

4848
//GPIO FUNCTIONS
4949
#define INPUT 0x00

0 commit comments

Comments
 (0)