Skip to content

Commit 3d01a6f

Browse files
ficetoficeto
ficeto
authored and
ficeto
committed
updating readme
1 parent 393ecbb commit 3d01a6f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

README.md

+7-4
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ $ ant dist
3232
Pin numbers correspond directly to the esp8266 GPIO pin numbers. To read GPIO2,
3333
call ```digitalRead(2);```
3434

35-
GPIO0-GPIO15 can be ```INPUT```, ```OUTPUT```, ```INPUT_PULLUP```, and ```OUTPUT_OPEN_DRAIN```.
36-
GPIO16 can be ```INPUT``` or ```OUTPUT```.
35+
GPIO0-GPIO15 can be ```INPUT```, ```OUTPUT```, ```INPUT_PULLUP```, and ```INPUT_PULLDOWN```.
36+
GPIO16 can be ```INPUT```, ```OUTPUT``` or ```INPUT_PULLDOWN```.
3737

3838
```analogRead(A0)``` reads the value of the ADC channel connected to the TOUT pin.
3939

@@ -47,6 +47,8 @@ types are supported: ```CHANGE```, ```RISING```, ```FALLING```.
4747
#### Pin Functions ####
4848

4949
![Pin Functions](https://raw.githubusercontent.com/Links2004/Arduino/esp8266/docs/pin_functions.png)
50+
The most usable pin functions are mapped to the macro ```SPECIAL```, so calling ```pinMode(pin, SPECIAL)```
51+
will switch that pin in the most usable FUNCTION_X. Those are UART RX/TX on pins 1 - 3, HSPI for pins 12-15 and CLK functions for pins 0, 4 and 5.
5052

5153
#### Timing and delays ####
5254
```millis``` and ```micros``` return the number of milliseconds and microseconds elapsed after reset, respectively.
@@ -123,9 +125,10 @@ Three examples included.
123125

124126
#### I2C (Wire library) ####
125127

126-
Wire library currently supports master mode up to approximately 450KHz (at 80 MHz CPU clock).
128+
Wire library currently supports master mode up to approximately 450KHz.
127129
Before using I2C, pins for SDA and SCL need to be set by calling
128-
```Wire.begin(int sda, int scl)```, i.e. ```Wire.begin(0, 2);``` on ESP-01.
130+
```Wire.begin(int sda, int scl)```, i.e. ```Wire.begin(0, 2);``` on ESP-01,
131+
else they default to pins 4(SDA) and 5(SCL).
129132

130133
#### SPI ####
131134

0 commit comments

Comments
 (0)