I´m thinking about getting an Sensehat and im praticing but had an like issue, I use the emulator and print the roll into the console when I turn the rollof the raspi to say 60° everythink is fine but when I turn it to like -171° it displays this : “(‘roll: ‘, 189.01, ‘x: ‘, 9)” (just take a look on the bold part) I know after 180° it continues but how can I like change it to like really be -171° I had the idea of doing like for I in range(181, 360): “do math stuff and put an ‘-‘ in front”
but that would be soo much mowrk stuff todo is there a easier way? .-.
grettings Fabian
put on hold as unclear what you’re asking by Milliways, Darth Vader♦ Jun 20 at 7:37
Please clarify your specific problem or add additional details to highlight exactly what you need. As it’s currently written, it’s hard to tell exactly what you’re asking. See the How to Ask page for help clarifying this question.If this question can be reworded to fit the rules in the help center, please edit the question.
Question
- I am using Trinket emulator to play with SenseHat.
- Rolling to 60° is good, but -171° gives somethings like -189°. Why?
Answer
Let me see. I read about SenseHat in MagPi, but I have never seen the real thing, or played with the fake thing using an emulator. Perhaps now I can start playing with the fake thing first, and buy the real thing later.
Now I am playing with trinket on Chinese Windows 10. I wrote a little program to print time and found everything OK, except it is python 2.7, not 3.0. I need to find out how to do python 3.0
/ to continue, …
References
/ to continue, …
Appendices
Appendix A – Trinket Introduction Web Page
Code the Sense HAT in Your Browser! New from Trinket and the Raspberry Pi Foundation: Explore Your World with Sensors and Python, …
Appendix B – Trinket Python Program – Time
/ to continue, …
Not the answer you’re looking for? Browse other questions tagged python-3 sense-hat or ask your own question.
Categories: Uncategorized




roll? … what doesdo math stuffmean? … you asked only one question, and it is nonsense … please ask a real question – jsotola Jun 19 at 22:15