日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

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

 代做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
  • 下一篇:ECE1747H代做、代寫python,Java程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 trae 豆包網頁版入口 目錄網 排行網

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

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

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        国产综合激情| 欧美精品一区二区三区蜜桃| 欧美日韩在线观看一区二区| 欧美激情欧美激情在线五月| 久久久精品日韩| 久久精品夜夜夜夜久久| 欧美不卡激情三级在线观看| 黑人巨大精品欧美一区二区小视频| 一区二区三区日韩在线观看| 国产精品v一区二区三区| 小处雏高清一区二区三区| 国产精品手机在线| 亚洲国产导航| 国产精品毛片a∨一区二区三区| 国产视频综合在线| 欧美大片一区| 国产伦一区二区三区色一情| 亚洲精品影视在线观看| 国产精品你懂的在线欣赏| 国产综合在线看| 亚洲激情视频网| 午夜在线视频观看日韩17c| 久久久久一区二区| 欧美国产高潮xxxx1819| 怡红院精品视频在线观看极品| 奶水喷射视频一区| 一色屋精品亚洲香蕉网站| 亚洲精品一区在线| 亚洲国产成人精品久久久国产成人一区| 国产一区二区三区高清| 中文精品视频一区二区在线观看| 久久成人精品| 欧美成人精品三级在线观看| 欧美激情欧美激情在线五月| 国产在线日韩| 夜夜嗨av一区二区三区网站四季av| 国产伦精品一区| 一区二区免费在线视频| 亚洲电影有码| 极品尤物一区二区三区| 欧美一级大片在线观看| 欧美日本二区| 久久国产精品久久久久久久久久| 欧美喷水视频| 亚洲欧洲一区二区在线观看| 国产欧美日韩精品专区| 亚洲欧美日韩视频二区| 久久精品国产第一区二区三区最新章节| 免费av成人在线| 国产精品在线看| 亚洲欧美日本另类| 精品不卡一区二区三区| 亚洲欧美三级在线| 亚洲天堂免费在线观看视频| 在线天堂一区av电影| 亚洲人午夜精品免费| 日韩午夜三级在线| 欧美日韩性生活视频| 久久综合久久久久88| 可以看av的网站久久看| 久久一区二区三区国产精品| 亚洲视频999| 国产精品久久久久久一区二区三区| 欧美黄网免费在线观看| 媚黑女一区二区| 欧美日本亚洲视频| 91久久中文| 国产午夜精品一区二区三区欧美| 性久久久久久久| 亚洲综合日韩在线| 久久久爽爽爽美女图片| 亚洲一区视频在线观看视频| 久久精彩视频| 欧美高清在线一区二区| 国产亚洲精品激情久久| 欧美激情第10页| 欧美+亚洲+精品+三区| 亚洲综合色婷婷| 国产免费观看久久| 亚洲精品久久久久久久久久久久| 国语自产精品视频在线看8查询8| 欧美影院久久久| 国产精品女主播在线观看| 欧美日韩三级一区二区| 亚洲自拍偷拍福利| 国产精品嫩草影院一区二区| 国产一区二区观看| 欧美一区二区成人| 国内精品视频在线播放| 欧美日韩国产一区二区三区地区| 欧美一区二区三区四区在线观看地址| 欧美夫妇交换俱乐部在线观看| 久久久久中文| 老鸭窝毛片一区二区三区| 亚洲精品影视在线观看| 久久五月婷婷丁香社区| 久久久高清一区二区三区| 亚洲第一色在线| 国产精品a久久久久久| 99在线精品视频在线观看| 国产精品福利av| 亚洲一区二区免费| 国产精品系列在线播放| 亚洲视频免费在线| 亚洲精品国产精品国自产观看浪潮| 亚洲激情一区| 久久久久久久激情视频| 欧美亚洲午夜视频在线观看| 亚洲国产日韩欧美在线99| 国产主播一区| 一本色道久久综合亚洲精品小说| 亚洲午夜精品在线| 欧美福利一区二区三区| 亚洲缚视频在线观看| 亚洲欧美日本伦理| 欧美日韩不卡视频| 亚洲影视九九影院在线观看| 欧美色精品天天在线观看视频| 一本一道久久综合狠狠老精东影业| 红杏aⅴ成人免费视频| 国内偷自视频区视频综合| 久久久最新网址| 亚洲精品一区二区在线| 黄色成人在线免费| 久久精品国产免费看久久精品| 久久人人97超碰国产公开结果| 欧美日精品一区视频| 亚洲一区二区欧美日韩| 欧美一区二区免费视频| 亚洲精品网站在线播放gif| 国产精品亚洲综合| 国产欧美激情| 欧美三级视频在线观看| 亚洲一区二区三区中文字幕在线| 狠狠操狠狠色综合网| 欧美日韩一区三区| 久久久午夜精品| 欧美体内she精视频| 亚洲一区网站| 亚洲制服欧美中文字幕中文字幕| 午夜精品久久久久久久白皮肤| 一本色道久久综合亚洲精品不| 欧美gay视频| 一区视频在线| 久久国产婷婷国产香蕉| 久久精品国产69国产精品亚洲| 欧美日韩欧美一区二区| 午夜日韩福利| 午夜亚洲伦理| 久久久www| 午夜日韩在线观看| 羞羞视频在线观看欧美| 久久亚洲影音av资源网| 国产精品一区二区三区免费观看| 韩日欧美一区二区| 欧美一区二区三区免费观看视频| 欧美激情黄色片| 亚洲电影在线看| 国产精品久久国产精麻豆99网站| 一区二区国产精品| 国产日韩欧美在线| 欧美一区二区免费| 欧美日韩一区二区免费在线观看| 亚洲私人影院在线观看|