Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U8G2 SlectionList questions #152

Closed
dreep opened this issue Jan 10, 2017 · 3 comments
Closed

U8G2 SlectionList questions #152

dreep opened this issue Jan 10, 2017 · 3 comments
Labels

Comments

@dreep
Copy link

dreep commented Jan 10, 2017

Hello,

Can we use SelectionList example with joystick&clic shield like http://henrysbench.capnfatz.com/henrys-bench/arduino-sensors-and-input/arduino-ps2-joystick-tutorial-keyes-ky-023-deek-robot/ ?

When i try, i just go down and clic...
u8g2.begin(/*Select= pin of switch button on joyctick shield*/ 38, /*Right/Next=*/ A1, /*Left/Prev=*/ A1, /*Up=*/ A3, /*Down= VRY*/ A0, /*Home/Cancel=*/ 8); // Arduboy 10 (Production)
Image hébergée par servimg.com
X axe is on A1 pin
Y axe is on A0 pin
switch is on pin 38

And eventually, can we add title that can be update in then menu.
For example :
char timetest = "00d00 00:00:00"; const char *string_list = timetest "Altocumulus\n" "Altostratus\n" "Cirrocumulus\n" "Cirrostratus\n" "Cirrus\n" "Cumulonimbus\n" "Cumulus\n" "Nimbostratus\n" "Stratocumulus\n" "Stratus";
Where timetest is a variable we can update ?
Or perhaps, define manually the number of line to show on the screen... (if my screen can draw 5 rows + title, i could choose to draw only 4 raows + title and use the end of the screen for something else)...

So, this function will be update and optimize or will evolve ?
Thx a lot

@dreep dreep changed the title U8G2 List example and control U8G2 SlectionList example and control Jan 10, 2017
@olikraus
Copy link
Owner

Hi
I added the selection list and other menu option just as a simple example. I think it should be a user task to add suitable user controll input methods. In fact it will beyond the scope of u8g2 to implement menu system. Goal is to support monochrome displays.
So please treat the selection list as an example. Of course you can reuse the code, etc.

@dreep dreep changed the title U8G2 SlectionList example and control U8G2 SlectionList questions Jan 10, 2017
@dreep
Copy link
Author

dreep commented Jan 10, 2017

ok, thx, for answer !!!
questions close !

@olikraus
Copy link
Owner

I think this is very similar to the issue #150. It would make up a complete new library to support all kind of input methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants