Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
Python Dice Program using SenseHAT LED Matrix Display

Fit to Sit Policy and Plagiarism Declaration

The University operates a fit to sit policy whereby you, in submitting or presenting yourself for an assessment, are declaring that you are fit to sit the assessment. You cannot subsequently claim that your performance in this assessment was affected by extenuating factors.

By submitting this assessment, you declare that it is your own work and that the sources of information and material you have used (including the internet) have been fully identified and properly acknowledged as required1

Additionally, the work presented has not been submitted for any other assessment. You also understand that the Faculty reserves the right to investigate allegations of plagiarism or unfair practice which, if proven, could result in a fail in this assessment and may affect your progress. Intellectual Property and Retention of Student Work:

You understand that the University will retain a copy of any assessments submitted electronically for evidence and quality assurance purposes; requests for the removal of assessments will only be considered if the work contains information that is either politically and/or commercially sensitive (as determined by the University) and whererequests are made by the relevant module leader or dissertation supervisor.

Assessment Task:

You are required to produce a simple Python programme that simulates a dice throw, displaying the result using the virtual SenseHAT LED matrix display. You can use the SenseHAT emulator online to help you in completing this assignment. Your code should achieve the following for basic functionality:

1. Display a very short welcome message on the LED matrix with basic instructions on how to use the dice simulator.

2. Pressing a specific key (e.g. Up arrow) on the keyboard to ‘throw the dice’. This must generate a random number between 1 and 6 using the python random module.

3. The virtual LED matrix on the SenseHAT is then illuminated to show the dice value achieved. You can generate the look of each dice face using the virtual LED matrix screen.

4. The programme runs in an infinite loop and pressing a key to throw another dice. Pressing a different key (e.g. Down arrow) on the keyboard exits the programme.

5. Once the programme has terminated, display a final short message on the LED matrix stating the number of times you have rolled the dice. Substantial additional marks can be earned by including extra functionality:

• Extend your code to simulate 2 die. You might want to consider using different  colours for the second dice on the LED matrix screen and include a suitable pause  between the two dice being thrown.

• Extend the code to detect if a 7, 11 or a double is ‘thrown’ for 2 die.

• Once you exit the programme using a key on the keyboard, include a simple summary (via a smple message displayed on the SenseHAT LED matrix screen) of dice rolled along with number of 7s, 11s or doubles achieved.

• A introduction and a brief discussion to cover the following topics:

o What is a Raspberry Pi and Raspbian OS?

o What is Linux and Python?

o What is GPIO and the SenseHAT?

• Provide a copy of your python dice code and don’t forget to include basic comments within the code itself explaining how your dice code works.

• For your report don’t forget to include suitable diagrams, screenshots.

• Include evidence of your code working: include photographs or a short video using your smartphone or screen capture to assist in your verification of the operation of the code.

• A brief conclusion that presents what you have learned from the assignment.

support
Whatsapp
callback
sales
sales chat
Whatsapp
callback
sales chat
close