Modules, cases, buttons...
Tue Apr 15, 2014 10:44 am
For rotating i think you have only to change the axis in the code.
Tue Apr 15, 2014 10:49 am
Yes, though I'm not sure if the buttons are also remapped, so that the original left button now moves you right.
Tue Apr 15, 2014 10:53 am
remapping is also simple, you have to change the port number where the button is connected
in this example you only have to change this line: const int buttonPin = 2; <--Arduino Pin 0-13
http://arduino.cc/en/tutorial/button
Tue Apr 15, 2014 11:11 am
Directional buttons are correctly remapped when you rotate the screen
You just have to change the line
- Code:
#define DISPLAY_ROT NOROT //set to NOROT, ROTCCW, ROT180 or ROTCW
in the file settings.c
It also changes the value of LCDWIDTH and LCDHEIGTH accordingly so you can program your game for it to work either in landscape or portrait mode.
Tue Apr 15, 2014 11:14 am
Awesome. Your libraries are awe inspiring rodot. So much goodness in them
Tue Apr 15, 2014 11:36 am
Hahaha thanks, I do my best
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.