-
In the working example the focus/highlight can be seen, and it can be shifted by the use of the buttons (or the joystick as originally written). In my version I cannot see the focus shifting and I cannot select a button. I created a simple display with two GUI buttons (OK and QUIT) to test using buttons A, B and C. From the generated code from the builder I manually added a copy of the mapping from the working example (ex40) for my buttons (in setup()) and also the max input in the header file as this is not generated by the builder:
I am using an Arduino Uno R4 Minima platform and Sloeber IDE. I can successfully run ex40_ard_ctrls_small_seesaw.ino. I would really appreciate some help. I know there are some focus related functions but the example does not use them but works. So I am a little lost, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
If any one else has the same issue the error was simple. The button mapping has to occur after function gslc_init() has been called. Here is the button mapping I used. If you put it in the arduino .ino file setup() function those lines go here (after the function defined in the auto generated header from builder) :
I have also tried adding those lines to the
|
Beta Was this translation helpful? Give feedback.
-
@Dowster64 If you are doing a lot of work with this mcu combination you can make your life easier by editing the Builder's templates so thet it can inject your code automatically for any new projects.
Suggested edits to ino2.t
Just an FYI |
Beta Was this translation helpful? Give feedback.
If any one else has the same issue the error was simple. The button mapping has to occur after function gslc_init() has been called. Here is the button mapping I used. If you put it in the arduino .ino file setup() function those lines go here (after the function defined in the auto generated header from builder) :