Änderungen

Aus Linkerkit.de

Wechseln zu: Navigation, Suche

LK-Joystick

94 Byte hinzugefügt, 13:14, 9. Nov. 2016
/* Codebeispiel Raspberry */
spi = spidev.SpiDev()
spi.open(0,0)
#GPIO.setwarnings(False)
#GPIO.setmode(GPIO.BCM)
def readadc(adcnum):
y = readadc(joyY)
print("X: " + str(x) + " Y: " + str(y))
if(x > 1000): print("Joystick gedrueckt") sleep(0.51)
</pre>