99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

 代做EEE226、java,c++編程代寫

時間:2023-11-26  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



 EEE226 – Engineering Software Design GA Assessment (2023) – V1.4
Assessment 1 requires you to use the knowledge gained so far in the course to build a memory game using the RGB LED and the touch slider. You will be assessed on the progress and quality of your program.
Background
Simon was an electronic game introduced in 1978 (shown in the picture below); it was one of the top-selling Christmas toys in the US that year. The device creates a sequence using the coloured lights, the player has to respond by pressing the coloured lights in the same order. The sequence gets longer through each iteration, with the game ending when the user enters an incorrect sequence. You are going to make a variation of this game where the device creates a sequence of five lights and then repeats the sequence with one missing (replaced by a white light); the player has to select which coloured light is missing. If correct, for the next round the device adds another coloured light to the same sequence and the whole sequence is shown to the user. The device now repeats the sequence with two lights missing; the user has to input the two coloured lights that were missing in the correct order. The game continues with each round the sequence getting longer and the number of lights missing each increasing. The game is over when the user enters the wrong sequence of missing lights.
Figure 1 - Simon game, introduced in 1978 by Milton Bradley (Wikipedia) As an example, a game could go as follows:
Round 1
Simon: green, green, blue, green, red
Simon: green, green, white, green, red
Player: blue – This is OK! In the above sequence, the 3rd (blue) colour was selected as the missing colour and replaced by white for the second sequence.
Round 2
Simon: green, green, blue, green, red, red
Simon: green, white, white, green, red, red
Player: green, blue – This is OK! The 2nd (green) and 3rd (blue) colours were replaced by white
Round 3
Prof. D. Gladwin 30/10/2023 EEE226 – GA Assessment (2023) - V1.4 ©The University of Sheffield
 
Simon: green, green, blue, green, red, red, blue
Simon: green, green, white, white, white, red, blue
Player: red, blue, green – This is not OK, game over! The user entered the incorrect sequence of missing colours. It should have been green, blue, green.
Assignment
The objective is to program the board to play the game as described above. You should present a random sequence to the user using the RGB LED made up of three colours, RED, GREEN and BLUE. The colours will represent three positions on the touch slider.
Left = RED
Middle = GREEN
Right = BLUE
(this is holding the board so that the touchpad is at the bottom)
The following specification should be met:
- There should be an indication using the RGB LED that the game is about to start. You must use more colours than just RED, GREEN, & BLUE. This must be done using PWM control of the LED to blend colours together. See information at end of this document on how to mix colours with the RGB LED. Make it clear that the sequence is about to be repeated.
- The sequence should start with a length of 5 and increase by one each time, add the new colour to the end of the sequence.
- The sequence should be different every time a new game is played, if I restart the board I shouldn’t get the same sequence. This includes the colours that are missing in the repeated sequence.
- The player should see a confirmation of the slider position they have pressed (i.e. RGB LED shows red briefly when the left-side of slider is pressed).
- The game should be coded so that double touches/movement on the slider are not counted as additional inputs to the response sequence. There is a document on blackboard to help you with this.
- The game is over when the player enters the wrong sequence and this is indicated by the RGB LED doing something interesting.
- The game should restart after a short pause and a touch of the slider.
Q&A
Q1 – Can I use different colours for the slider positions?
A1 – No, I have over 160 of these to mark, if you want the marks back in a reasonable time then I need them all to be the same to test!
Q2 – Can I use different colours to show game progress, for example yellow for about to start?
A2 – Yes, you must use different colours and I have provided information at the end of this document to help you. Just make sure you stick to the three position colours I have stated above. You will get the opportunity when you submit your work to tell me what they mean, however, the marking rubric shows marks for the game interface which should be intuitive.
Q3 – This is crazy, the touchpad is not accurate enough?
A3 – Yes it is. Don’t just divide the slider into three equal areas, create a larger area for the middle as you know that you can touch the extreme edges for the other positions.
Q4 – The touchpad is registering two or more touches when I only press once?
A4 – You can alter the settings in processor expert but better still, write some code to deal with fact that this happens – I have provided a document in BB to help. I will be looking at the reliability of your code in detecting this. You can also put insulation tape over the touchpad, this has had good results. Try to avoid touching the freedom board circuity with the other hand, I use Blu Tack to stick the board to my desk.
Q5 – I have tried to make a random sequence but it isn’t random does it matter?
A5 – Yes it matters, think about how you can set the seed of your random number generator differently each time the game is started.
 Prof. D. Gladwin 30/10/2023 EEE226 – GA Assessment (2023) - V1.4 ©The University of Sheffield

 Q6 – Does it matter if I add the next colour at the end of the sequence or the beginning?
A6 – You need to add the new colour at the end of the sequence. If you start with red,blue,red,green,blue for round 1, then in round 2 if you add green the new sequence will be red,blue,red,green,blue,green.
Q7 – Can the missing colours start at the 1st colour position.
A7 – Yes, the start of the missing colours should be selected at random from anywhere in your sequence of colours. For example if you had red,blue,red,green,blue,green for round 2 then you could display white,white,red,green,blue,green. The missing colours do need to be consecutive.
Q8 – Can I make different levels of gameplay?
A8 – Yes, you can make the game as sophisticated as you like. You must however make sure the basic specification above is clearly demonstrated.
Q9 – How many rounds should be possible?
A9 – I think I have the skills.... 50 rounds please.
Uploading your assessment
When you have completed the assignment you should navigate using windows explorer (or mac equivalent) to your workspace directory. From there zip the contents of your project folder as shown below and call it ‘username_assigment1’, for example, ‘ela09jh_assignment1’. Do not try to change the name of your project within KDS as it will break, you only need to change the name of the zip file that you uplaod. Check by opening the zip file that it contains all your files and folders, it should be approx. 3-5MB in size. In blackboard you will find an ‘Assignment 1’ folder which a final submission test. Start the test and you will be asked to upload your zip file and fill in some text boxes. When this is done remember to ‘Submit’ your test.
HINT: Note that zipping your project folder is also a method of backing up your work as you progress and a good idea to get into the habit of doing it for future projects. If you are unsure about how to create a zip file have a look on Google. A free recommended archiving utility available for windows is ‘7zip’.
Time allocation
Tuesday 31 October – you may have the other labs to complete but do read through this document carefully. Tuesday 7 November – 2 hours in lab
Tuesday 14 November – 2 hours in lab
Tuesday 21 November – 2 hours in lab
Expect to spend between 6 and 12 hours to complete the assessment in your own time depending on your previous experience.
DEADLINE FOR SUBMISSION – Friday 15th December 2023 @ 23:30
The assignment 1 submission tests will automatically close at 23:30 and you will not be able to submit any more work. Late submission will not be accepted and you will receive marks only for work that has been uploaded before the deadline. You will receive your marks before the Easter break in semester 2 as each one has to be downloaded, compiled and tested which takes a long time. There will be feedback posted to your mark in blackboard which you will be able to view by clicking on ‘My Grades’ and then clicking on the ‘Assessment 1’ score.
Prof. D. Gladwin 30/10/2023 EEE226 – GA Assessment (2023) - V1.4 ©The University of Sheffield

Mixing colours
All colours can be represented by the RGB colour model. You can see an example of this if you look at the colour palette in most software programs such as the font colour selector in Microsoft Word. If you create a custom colour by moving the mouse around the colour chart you will see the values of red, green and blue changing. These values represent the intensity of each colour from 0 meaning off to 255 fully on. As the Freedom board has a RGB LED you should be able to create any colour with it similarly using the RGB model. You will need to vary the intensity of each LED independently, a method to do this is to use pulse-width modulation (PWM) as shown below.
 Figure 2 – PWM controlled LED
STUDY: If you are unfamiliar with PWM do some research on the topic
PWM control of LED
In a microcontroller a hardware PWM signal is generated using a comparator feature of the timers. A basic block diagram is shown below in Figure 2. The primary clock signal is scaled through a prescaler to slow it down and is generally a power of 2. In Processor Expert this value is configured automatically when you set the period time length of the timer unit used for PWM generation. The timer counts up until it reaches its maximum value and then starts again from zero producing a sawtooth waveform as shown in Figure 3. In your program you will specify the duty cycle required, this value is stored as a registry value. This registry value and the current value of the timer are compared and when the timer reaches the value in the registry the output of the PWM is set high. When the timer is reset to 0 the comparator result will also reset causing the PWM output to go low. The PWM output generated from two different duty cycle levels are shown in figures 3 and 4. Each timer unit on the KL25Z support 2 channels of comparator to be used with two PWM signals.
Figure 3 – Hardware PWM generation in Microcontrollers

請加QQ:99515681 或郵箱:99515681@qq.com   WX:codehelp

掃一掃在手機打開當前頁
  • 上一篇:代做6CCS3AIN MDP-solver
  • 下一篇:二維碼制作:有效的營銷工具
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                同产精品九九九| 精品国产乱码久久久久久影片| 成人动漫中文字幕| 51精品视频一区二区三区| 一区二区三区产品免费精品久久75| 久久精品久久99精品久久| 欧美日韩国产在线观看| 欧美绝品在线观看成人午夜影视| 日韩电影在线一区二区| 色综合色综合色综合| 亚洲国产人成综合网站| 一本大道久久a久久精品综合| 国产精品你懂的在线欣赏| 国产高清无密码一区二区三区| 国产精品视频第一区| 国产激情视频一区二区在线观看 | 国产一区二区福利视频| 日韩视频中午一区| 国产精品白丝jk白祙喷水网站| 国产日韩欧美高清| 97国产一区二区| 一卡二卡三卡日韩欧美| 欧美一区二区在线播放| 久久狠狠亚洲综合| 亚洲欧美乱综合| 日韩欧美一区二区视频| 粉嫩aⅴ一区二区三区四区五区| 舔着乳尖日韩一区| 国产亚洲精品bt天堂精选| 美女视频免费一区| 国产精品国产精品国产专区不片| 97精品国产97久久久久久久久久久久| 美国十次了思思久久精品导航| 国产女人水真多18毛片18精品视频| 99久久伊人精品| 韩国欧美国产1区| 综合色中文字幕| 欧美日韩精品免费观看视频| 成人高清视频免费观看| 午夜久久福利影院| 欧美日韩午夜影院| heyzo一本久久综合| 视频一区二区三区在线| 亚洲综合区在线| 欧美经典一区二区| 69p69国产精品| 国产精品丝袜黑色高跟| 欧美一区二区三区成人| 99久精品国产| 91免费精品国自产拍在线不卡| 视频一区欧美精品| 亚洲综合激情另类小说区| 亚洲色图都市小说| 日本一区二区三区久久久久久久久不 | 久久久www成人免费毛片麻豆| 欧美色欧美亚洲另类二区| 成人永久看片免费视频天堂| 日韩精品色哟哟| 日韩久久久久久| 日韩一级欧美一级| 欧美色偷偷大香| 91视频精品在这里| 91在线观看美女| 国产成人在线视频免费播放| 另类中文字幕网| 九九热在线视频观看这里只有精品| 亚洲高清视频的网址| 亚洲免费观看高清在线观看| 夜夜操天天操亚洲| 亚洲精品视频一区| 亚洲视频在线一区| 亚洲综合色自拍一区| 一区二区三区成人| 亚洲一区在线电影| 免费在线欧美视频| 免费高清在线视频一区·| 男女激情视频一区| 国产成人午夜片在线观看高清观看| 国模一区二区三区白浆| 国产乱理伦片在线观看夜一区| 国产成人在线网站| 不卡电影一区二区三区| 国产高清在线观看免费不卡| av男人天堂一区| 久久99精品国产91久久来源 | 免费成人在线影院| 久久国产乱子精品免费女| 粉嫩aⅴ一区二区三区四区五区| 天天综合天天做天天综合| 日韩二区三区四区| 成人黄色在线网站| 欧美综合天天夜夜久久| 51精品秘密在线观看| 国产亚洲成aⅴ人片在线观看| 国产精品视频一区二区三区不卡| 国产精品美女久久久久久久久久久 | www.在线成人| 色又黄又爽网站www久久| 欧美一级片在线看| 欧美色网一区二区| 91精品在线一区二区| 91久久精品一区二区三| 日韩三区在线观看| 一色桃子久久精品亚洲| 亚洲午夜免费视频| 国产精品1区2区3区| 一本色道**综合亚洲精品蜜桃冫| 欧美日韩国产经典色站一区二区三区| 国产成人99久久亚洲综合精品| 亚洲一区二区三区视频在线| 久久国产福利国产秒拍| 97久久超碰精品国产| 日韩视频一区二区三区在线播放| 欧美国产日本韩| 日韩综合一区二区| 日本韩国精品一区二区在线观看| 在线电影一区二区三区| 国产日韩欧美a| 国产婷婷色一区二区三区四区 | 亚洲午夜国产一区99re久久| 丁香六月久久综合狠狠色| 欧美日韩成人综合| 亚洲天堂免费在线观看视频| 国产乱码精品一区二区三区忘忧草 | 国产高清不卡一区二区| 5566中文字幕一区二区电影| 亚洲高清免费观看高清完整版在线观看| 精品在线观看免费| 免费av成人在线| 亚洲国产成人自拍| 日本欧美一区二区在线观看| 97成人超碰视| 精品视频1区2区| 亚洲高清视频中文字幕| 国产又黄又大久久| 久久品道一品道久久精品| 蜜桃一区二区三区在线| 这里只有精品99re| 美日韩一级片在线观看| 日韩视频一区在线观看| 免费看日韩精品| 日韩你懂的在线观看| 麻豆精品视频在线观看免费| 欧美大肚乱孕交hd孕妇| 国产美女在线精品| 亚洲精品久久7777| 9191久久久久久久久久久| 美女国产一区二区三区| 久久久久国产精品麻豆ai换脸| 国产精品中文欧美| 亚洲欧洲综合另类| 欧美日韩久久久久久| 免费人成黄页网站在线一区二区| 欧美电影免费观看高清完整版在| 精品亚洲国产成人av制服丝袜| 国产日韩精品久久久| 91老师片黄在线观看| 亚洲国产综合91精品麻豆| 91精品国产色综合久久不卡电影| 精品一区二区三区欧美| 国产精品毛片高清在线完整版| 色综合中文字幕| 蜜臀av性久久久久蜜臀av麻豆| 久久久99免费| 91美女片黄在线观看91美女| 亚洲成人午夜影院| 久久精品水蜜桃av综合天堂| 色狠狠色狠狠综合| 久久精品国产精品亚洲红杏| 亚洲视频狠狠干| 日韩视频一区二区| 色老综合老女人久久久| 国产一二三精品| 亚洲国产欧美日韩另类综合| 精品盗摄一区二区三区| 91九色最新地址| 国产精品主播直播| 午夜精品久久久久久久久| 中文字幕av一区二区三区| 99久久综合99久久综合网站| 日本亚洲一区二区| 亚洲影视在线播放| 中文字幕一区视频| 精品国产一区二区在线观看| 在线观看免费亚洲| 99精品在线免费| 成人毛片老司机大片| 麻豆国产精品视频| 亚洲高清免费一级二级三级| 亚洲国产精品t66y| 欧美mv日韩mv| 在线电影欧美成精品| 欧美中文一区二区三区| 99久久精品国产一区二区三区| 国产自产视频一区二区三区| 亚洲444eee在线观看| 夜夜嗨av一区二区三区| 亚洲精品自拍动漫在线| 亚洲日本一区二区| 亚洲欧洲国产日韩|