Hello, currently im doing the bonus question, and i am wondering, how do i combine the lab 9 sine wave code into lab 10 so it shows up on the kentec lcd display? Thanks!!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, currently im doing the bonus question, and i am wondering, how do i combine the lab 9 sine wave code into lab 10 so it shows up on the kentec lcd display? Thanks!!
Hello, i understand but now after a clearer picture, i think i need to focus more on pixel plotting. Is there any guide for me to use to understand pixel plotting on the kentec more?
Hello, thanks for your reply. Could u explain what u mean by computing each value? Im not very clear on what it means.
Sorry but how do u call the rand() function, sorry if my question sounds dumb as i have no idea how to do it. I tried googling but the answers aren't what im looking for.
This is becos it's part of my project and I am tasked to be able to generate some form of results on the kentec lcd display.
Right now I am leaning towards developing codes for producing a sine wave on the lcd display. However, I am not very certain of the functions required. As I have already asked above
Hi Desmond,
There are not any other simplest examples. What can we/I do to help you is to add two special comments for you:
a) First is about the sine_demo example. As you probably know, the sine is taken at several points, equally spaced. To display them there are two possible cases: the first one is to take N samples and store them into an array, then making use of graphic functions to send them to the display. This means we need a "for" loop to compute and store them. But after we sent them to the display, there is nothing to do, so a while(1) loop will be empty.
For reasons not to be discussed now, we can replace the for loop with the while(1) loop itself, computing one sample at the time, placing into an array, and displaying the result. This has a secondary effect to generate a slow moving (to the left) sine wave. This is the example provided by TI. To create the moving effect, the waveform samples are moved into memory (see the memmove function call) one sample up (the second becomes the first) and creating room for a new (latest) sample.
b) From practical point of view, what can you do: supposing you use the CCS, then just import the sine_demo example, compile/link it and stop at this stage, do not run. But examine your project structure and the settings - you will find out some files added to the project - the drivers for the display and the graphics library.
Then start a new project, this time for your micro, and make it to contain the same files as the previous one, except for the display drivers, where you need to use the drivers for your display. Compile and link and this time run it. Take care about the settings.
That's all.
okay thanks for your help. I will do as u have advised ^.^ U guys have been a great help!