Skip to content

Commit b4df3e7

Browse files
committed
docs/esp8266/quickref: Further improvements for SPI subsections.
Consistency and formatting.
1 parent 20da906 commit b4df3e7

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/esp8266/quickref.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ Use the ``machine.ADC`` class::
162162
adc = ADC(0) # create ADC object on ADC pin
163163
adc.read() # read value, 0-1024
164164

165-
SPI bus
166-
-------
165+
Software SPI bus
166+
----------------
167167

168168
There are two SPI drivers. One is implemented in software (bit-banging)
169169
and works on all pins::
@@ -191,19 +191,19 @@ and works on all pins::
191191
spi.write_readinto(buf, buf) # write buf to MOSI and read MISO back into buf
192192

193193

194-
Hardware SPI
195-
------------
194+
Hardware SPI bus
195+
----------------
196196

197197
The hardware SPI is faster (up to 80Mhz), but only works on following pins:
198198
``MISO`` is GPIO12, ``MOSI`` is GPIO13, and ``SCK`` is GPIO14. It has the same
199-
methods as SPI, except for the pin parameters for the constructor and init
200-
(as those are fixed).
199+
methods as the bitbanging SPI class above, except for the pin parameters for the
200+
constructor and init (as those are fixed)::
201201

202202
from machine import Pin, SPI
203203

204204
hspi = SPI(1, baudrate=80000000, polarity=0, phase=0)
205205

206-
(SPI(0) is used for FlashROM and not available to users.)
206+
(``SPI(0)`` is used for FlashROM and not available to users.)
207207

208208
I2C bus
209209
-------

0 commit comments

Comments
 (0)