@@ -162,10 +162,11 @@ 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
168- There are two SPI drivers. One is implemented in software and works on all pins::
168+ There are two SPI drivers. One is implemented in software (bit-banging)
169+ and works on all pins::
169170
170171 from machine import Pin, SPI
171172
@@ -190,18 +191,19 @@ There are two SPI drivers. One is implemented in software and works on all pins:
190191 spi.write_readinto(buf, buf) # write buf to MOSI and read MISO back into buf
191192
192193
193- Hardware SPI
194- ------------
194+ Hardware SPI bus
195+ ----------------
195196
196197The hardware SPI is faster (up to 80Mhz), but only works on following pins:
197- ``MISO `` is gpio12 , ``MOSI `` is gpio13 , and ``SCK `` is gpio14 . It has the same
198- methods as SPI, except for the pin parameters for the constructor and init
199- (as those are fixed).
198+ ``MISO `` is GPIO12 , ``MOSI `` is GPIO13 , and ``SCK `` is GPIO14 . It has the same
199+ methods as the bitbanging SPI class above , except for the pin parameters for the
200+ constructor and init (as those are fixed)::
200201
201202 from machine import Pin, SPI
202203
203- hspi = SPI(0 , baudrate=80000000, polarity=0, phase=0)
204+ hspi = SPI(1 , baudrate=80000000, polarity=0, phase=0)
204205
206+ (``SPI(0) `` is used for FlashROM and not available to users.)
205207
206208I2C bus
207209-------
0 commit comments