Cameras

From DSiBrew
Jump to navigation Jump to search

The Nintendo DSi contains two cameras. The cameras can be used in the Nintendo DSi Camera application or DSi games that are compatible.

Specifications

A picture taken with the DSi's camera.
  • 0.3 Megapixel
  • 640*480 VGA
  • No zoom and no flash.
  • Photos saved in JPG format (saved in DCIM/ folder on the SD/SDHC or in the internal memory)

Applications/Games compatible

Applications

Games

  • Asphalt 4 : Elite Racing (DSiWare)
  • Brain Challenge (DSiWare)
  • Classic Word Games
  • Cooking Coach
  • Pop SuperStar : Road To Celebrity (DSiWare)
  • Real Football 2009 (DSiWare)
  • WarioWare : Snapped! (DSiWare)
  • iCarly
  • Pokemon Black,White (2010,JP)
  • Castle of Magic (DSiWare)
  • Photo Dojo (DSiWare)

Camera registers

The cameras are controlled and initialized with I2C. The below registers are accessed by the arm9.

ADDRESS WIDTH NAME
0x04004200 2 REG_CAMUNK
0x04004202 2 REG_CAMCNT
0x04004204 4 REG_CAMDATA

REG_CAMUNK

BIT DESCRIPTION
15-0 ?

REG_CAMCNT

BIT DESCRIPTION
13-0 ?
14 ?
15 Frame transfer enable

REG_CAMDATA

BIT DESCRIPTION
31-0 Video data

For retrieving camera video data, NDMA with arm9 startup mode 11(camera) is used with this src register. Transferred length varies per resolution. In the video data, each pixel is 2 bytes.

See also