Joystick Error - Raspberry Pi Forums
this common type of post in forum joystick not working. have isolated code quite long , software error instead of hardware. have read guides posted on rpi website , believe i'm doing right. here isolated version of code: huge in advance i've spent 3 hours trying fix it!
code: select all
from astro_pi import astropi #importing astropi python library. ap = astropi() temp = ap.get_temperature() z = [255, 0, 0] redhigh = [ z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, #setting individual neopixels create high red equilizer when values above safe values z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z, z ] event.type = input(ap.show_message("select variable screen")) while event.type == keyleft: while temp < 30: ap.set_pixels(redhigh)
hi, can ask, know how make temperature displayed on 1 page, , when move joystick right, shows humidity... please @ post see mean.
raspberrypi
Comments
Post a Comment