Go to advanced search

by Joseph Burrell
Fri Jun 26, 2015 4:28 pm
Forum: Astro Pi
Topic: Joystick Error
Replies: 3
Views: 990

Re: Joystick Error

Hi, can I ask, do you know how to make it so that the temperature is displayed on one page, and when I move the joystick right, it shows the humidity... Please look at my post to see what I mean.
by Joseph Burrell
Fri Jun 26, 2015 4:25 pm
Forum: Astro Pi
Topic: Joystick Help!
Replies: 3
Views: 1060

Re: Joystick Help!

I'm sorry, but I genuinely do not understand. I have been spending hours trying to do it, but it isn't working! I have done very little and the deadline is in two weeks so I doubt that I will be able to enter.

I don't know what to do!
by Joseph Burrell
Fri Jun 19, 2015 10:35 pm
Forum: Astro Pi
Topic: Joystick Help!
Replies: 3
Views: 1060

Joystick Help!

Hi. I am trying to make it so that when Tim turns on the Pi. It comes up with the temperature. This is one page. When he moves the joystick right, it turns to the other page which shows him the humidity. He can press it again which goes to another page to show whatever. Please help! I am completely ...
by Joseph Burrell
Fri Jun 19, 2015 8:06 pm
Forum: Astro Pi
Topic: Code to check if the switch is pressed
Replies: 7
Views: 1715

Re: Code to check if the switch is pressed

I just need to know what the code is to check the central press of the joystick and if it is not pressed, then to loop back and check again, meaning it is constantly checking. Thanks The Astro Pi / Sense HAT's joystick is mapped to the up/down/left/right/enter keys on the keyboard. To detect joysti...
by Joseph Burrell
Fri Jun 19, 2015 8:05 pm
Forum: Astro Pi
Topic: Code to check if the switch is pressed
Replies: 7
Views: 1715

Re: Code to check if the switch is pressed

from astro_pi import AstroPi # Imports the Astro Pi ap = AstroPi() # Changing Astro Pi into 'ap' import pygame from pygame.locals import * from astro_pi import AstroPi import time # Imports the time t = time ap.set_rotation(270) #ap.show_message("Welcome, Tim!", scroll_speed=0.05, text_colour=[255,...
by Joseph Burrell
Mon Jun 15, 2015 9:31 pm
Forum: Astro Pi
Topic: Code to check if the switch is pressed
Replies: 7
Views: 1715

Re: Code to check if the switch is pressed

Hi. I want to know how to code my Pi so that when I move the Joystick one way, the 'page' which is being shown on the LEDs will move to a different page. Eg. One page shows the temperature, the joystick is moved right, the next page shows the humidity. I don't understand how to do this.

Thanks!
by Joseph Burrell
Wed May 27, 2015 11:24 am
Forum: Astro Pi
Topic: Joystick Problems
Replies: 7
Views: 2064

Re: Joystick Problems

Hi

I have just set-up my Astro Pi! However, I do not know how to use the joystick in my program. What is the code for when i move it one way, it does something. Eg. If the joystick is pressed down, start a game.

Thanks! :D :geek:

Go to advanced search