Modifications

Sauter à la navigation Sauter à la recherche
74 octets ajoutés ,  25 mai 2021 à 08:32
Ligne 70 : Ligne 70 :     
<syntaxhighlight lang="python">
 
<syntaxhighlight lang="python">
 +
# SoftSPI(baudrate=500000, *, polarity=0, phase=0, bits=8, firstbit=MSB, sck=None, mosi=None, miso=None)
 +
# See: https://docs.micropython.org/en/latest/library/machine.SPI.html
 +
#
 +
 
from machine import SoftSPI, Pin
 
from machine import SoftSPI, Pin
# SoftSPI(baudrate=500000, *, polarity=0, phase=0, bits=8, firstbit=MSB, sck=None, mosi=None, miso=None)
   
spi = SoftSPI( miso=Pin(15), mosi=Pin(2), sck=Pin(14), baudrate=500000 )
 
spi = SoftSPI( miso=Pin(15), mosi=Pin(2), sck=Pin(14), baudrate=500000 )
 
ssel = Pin( 17, Pin.OUT, value=1 ) # Disabled Slave Select
 
ssel = Pin( 17, Pin.OUT, value=1 ) # Disabled Slave Select
29 917

modifications

Menu de navigation