Again, the pitch of some devices *IS NOT* 2x width. You can't assume that. This is why it is stored. It is needed. To access a given pixel, use GetPixel. To access a given row, use GetPixel( 0, row ). If you want to manipulate a pixel pointer yourself, then you have to take the pitch into account.
Currently, PocketHAL only returns 16 bits (R5G6B5) surfaces. The underlying device can be grayscale, 8-bit palette, 12 bits (R4G4B4) 24 bits or even 32 bits. It doesn't matter. PocketHAL always return a 565 surface.
If this changes in a future release, then obviously GetPixel() will have to be modified to return void* instead of uint16_t*.
class 16BitSurface : public Surface {...}
class 24BitSurface : public Surface {...}
This is BAD BAD BAD. Don't do that. If you want to support multiple pixel formats, you will have to implement your own class, and do not derive it from PHAL's Surface. That's just wrong. A "24BitSurface" is certainly not a "PHAL::Surface". The two are unrelated.