| ||
| Views: 2,121,120 | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 01-12-26 07:55 AM |
| Guest: | ||
| 0 users reading Touch Screen? | 1 bot |
| Main - Reverse-engineering - Touch Screen? | Hide post layouts | New reply |
| gudenau |
| ||
|
Member Normal user Level: 14
Posts: 28/34 EXP: 12253 Next: 818 Since: 07-29-15 From: /dev/random Last post: 3527 days ago Last view: 3473 days ago |
Anyone have info on how the 3DS gets its input from the touch screen? |
| profi200 |
| ||
|
Member Who knows? Level: 20 Posts: 62/70 EXP: 36520 Next: 5919 Since: 05-21-15 From: Germany Last post: 3409 days ago Last view: 3277 days ago |
*cough* libnds *cough* |
| gudenau |
| ||
|
Member Normal user Level: 14
Posts: 29/34 EXP: 12253 Next: 818 Since: 07-29-15 From: /dev/random Last post: 3527 days ago Last view: 3473 days ago |
Posted by profi200 Is the hardware really the same though? I know it changed from DS to DSi and I don't want to use compatibility modes. |
| nocash |
| ||
|
Normal user Level: 20 Posts: 32/77 EXP: 41364 Next: 1075 Since: 10-09-15 Last post: 2514 days ago Last view: 2430 days ago |
libnds should contain code for both DS and DSi modes (that code will require "low level" access to SPI bus).
don't know if 3DS comes up with a different mode, just try the DSi code. If it works, then DSi and 3DS are apparently accessing it the same way. calibration data could be read in DS fashion (from wifi flash), but there should be also a 3DS specific config file containing the same calibration values (probably also stored somewhere in RAM). |
| profi200 |
| ||
|
Member Who knows? Level: 20 Posts: 63/70 EXP: 36520 Next: 5919 Since: 05-21-15 From: Germany Last post: 3409 days ago Last view: 3277 days ago |
xerpi is reverse engineering sysmodules right now to find out how to do it. Unfortunately the DSi touchscreen read code in libnds does not correctly work. I thought because it is backwards compatible that could work but it is different in 3DS mode. |
| xerpi |
| ||
|
Newcomer Normal user Level: 5 Posts: 3/4 EXP: 510 Next: 19 Since: 11-11-14 Last post: 3573 days ago Last view: 3573 days ago |
Here's all the RE I've done to the GPIO module: http://pastie.org/private/b17vatmthopnxufqb5trw
I'm still trying to figure out how the GPIO registers work. |
| Dazzozo |
| ||
|
Member Dev of "the best software that almost nobody will ever use" Level: 9
Posts: 13/13 EXP: 2922 Next: 240 Since: 05-21-15 Last post: 3577 days ago Last view: 3410 days ago |
see http://3dbrew.org/w/index.php?title=Codec_Services&curid=2071&diff=16241&oldid=13745
These use SPI device 3, I think the legacy (TWL) device was 2. |
| gudenau |
| ||
|
Member Normal user Level: 14
Posts: 30/34 EXP: 12253 Next: 818 Since: 07-29-15 From: /dev/random Last post: 3527 days ago Last view: 3473 days ago |
Oh, so mr Linux was working on it. Cool.
Guess I'll just do other things... |
| xerpi |
| ||
|
Newcomer Normal user Level: 5 Posts: 4/4 EXP: 510 Next: 19 Since: 11-11-14 Last post: 3573 days ago Last view: 3573 days ago |
Yesterday I finally got the touchscreen working on Linux after porting the RE'd code from the codec and SPI services. I'll post the pseudo-code to get the touchscreen initialized and read from it soon. |
| gudenau |
| ||
|
Member Normal user Level: 14
Posts: 31/34 EXP: 12253 Next: 818 Since: 07-29-15 From: /dev/random Last post: 3527 days ago Last view: 3473 days ago |
Posted by xerpi Nice, got ARM9 <-> ARM11 yet? |
| Main - Reverse-engineering - Touch Screen? | Hide post layouts | New reply |
|
Page rendered in 0.019 seconds. (2048KB of memory used) MySQL - queries: 26, rows: 81/81, time: 0.011 seconds.
Acmlmboard 2.064 (2018-07-20)© 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |