Joystick and LCD Flashcards

1
Q

What is the resolution of the LCD?

A

84x48

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is the LCD controlled?

A

Using an SPI interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 4 wires for SPI?

A

> SCLK
MOSI
MISO
SS (CSE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does the microcontroller control the screen?

A

It has a screen buffer. This is a 84x48 char array which maps directly to each pixel.
When refresh is sent it transfers the entire buffer over to the screen

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is required to set up the screen?

A

N5110 lcd;

lcd. init();
lcd. setContrast(0.4);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the print string command for the LCD?

A

lcd.printString(“string”,0,0);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you change a pixel to black or white?

A

lcd. setPixel(2,5,false);

lcd. setPixel(2,5,true);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the command to check the status of a pixel?

A

lcd.getPixel(2,2);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the required setup for the joystick?

A
Joystick joystick(PTB11,PTB10);
joystick.init();
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the issue with getting just the x and y coordinates? How is this solved?

A

> When the joystick is in a corner, it will be faster because the magnitude of the vector is larger.
To solve this, we plot all points on a points inside a unit circle.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly