Originally posted by sausages I selected P on the mode dial and activated the camera's flash; the shots were underexposed.
Welcome to the Pentax Forums!
P-TTL auto flash works in all exposure modes on your camera* (green, P, Sv, Tv, Av, TAv, M, B**, and X) and provides on-body auto flash for all but two flash modes, those being M(manual) and Wireless(Controller). M (Manual) flash always fires full strength, while Wireless (Controller) does not contribute significantly to the actual exposure. Check to make sure your flash is not set for Wireless (Controller).
That corner case aside, if you have underexposed shots either the aperture is set too narrow and/or the ISO set too low for the subject distance. The onboard flash is fairly weak, though using P with ISO set to auto and flash set to "ON" at a distance less than 6 meters will usually work well.
Steve
* I think you may have misunderstood the manual.
** Yes, strangely enough.
Last edited by stevebrot; 10-04-2019 at 11:40 AM.