diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-09-04 21:13:55 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2016-09-04 21:13:55 +0300 |
commit | 20da9064d7492b2f37a2140c17e468fb5785a593 (patch) | |
tree | 35162614a7c295d5c5ae600f78fe36df349dfa8c | |
parent | dba40afa706a1ac4b102dceba217844dc1540ce7 (diff) | |
download | micropython-20da9064d7492b2f37a2140c17e468fb5785a593.tar.gz micropython-20da9064d7492b2f37a2140c17e468fb5785a593.zip |
docs/esp8266/quickref: Update information on SPI classes.
SPI(1) is not used for hardware SPI. Few more details are provided.
-rw-r--r-- | docs/esp8266/quickref.rst | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/docs/esp8266/quickref.rst b/docs/esp8266/quickref.rst index d209871361..ae7a8f724f 100644 --- a/docs/esp8266/quickref.rst +++ b/docs/esp8266/quickref.rst @@ -165,7 +165,8 @@ Use the ``machine.ADC`` class:: SPI bus ------- -There are two SPI drivers. One is implemented in software and works on all pins:: +There are two SPI drivers. One is implemented in software (bit-banging) +and works on all pins:: from machine import Pin, SPI @@ -194,14 +195,15 @@ Hardware SPI ------------ The hardware SPI is faster (up to 80Mhz), but only works on following pins: -``MISO`` is gpio12, ``MOSI`` is gpio13, and ``SCK`` is gpio14. It has the same +``MISO`` is GPIO12, ``MOSI`` is GPIO13, and ``SCK`` is GPIO14. It has the same methods as SPI, except for the pin parameters for the constructor and init (as those are fixed). from machine import Pin, SPI - hspi = SPI(0, baudrate=80000000, polarity=0, phase=0) + hspi = SPI(1, baudrate=80000000, polarity=0, phase=0) +(SPI(0) is used for FlashROM and not available to users.) I2C bus ------- |