File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
168168There are two SPI drivers. One is implemented in software (bit-banging)
169169and 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
197197The 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
208208I2C bus
209209-------
You can’t perform that action at this time.
0 commit comments