beautypg.com

Image manipulation, Changing the ip address, Wow-sh7203 µclinux – Renesas Single-Chip Microcomputer SH7203 User Manual

Page 13: User’s manual

background image

WOW-SH7203 µClinux

11

D008290_11 Issue 1

User’s Manual

Image manipulation

The bmp2src tool has been provided to simplify image manipulation when using the RSKSH7203 board outside of the
µClinux operating system.
With this tool one can convert Windows Bitmap (.BMP) files into a 16-bit RGB format that can be used in conjunction with
the “TFT_LCD Display” RSK+SH7203 sample project. You can simply replace the Image.c file supplied in the sample
program with the file generated by bmp2src to change the image.

Usage bmp2src File1[.bmp] [File2]

The tool takes up to 2 parameters:-

File1: Filename of the source Windows Bitmap (.BMP) file.

File2: Filename given to the output from the program. If omitted the default output filename would be File1.c.

Output Format

The output format is 16-bit (565) RGB where (reading left to right) 5 bits represent Red, 6 bits represent Green & 5 bits
represent Blue.
Please remember that the required image size is 320 x 240 (QVGA).
The output can be viewed, once loaded onto the RSKSH7203 board, using the Graphics-Image View supplied as part of
HEW.

Changing the IP address

The board’s default IP address is 192.168.1.100. You can connect either by configuring an external machine to be on the
same subnet or by changing the board’s IP address using the serial console.

To change the IP address temporarily, use ifconfig:

ifconfig eth0 192.168.2.2

The IP address can be changed more permanently by modifying the ’rc’ file using VI:
vi

/etc/rc

Changes to the file system will persist through reboots of the board.