Skip to content

Instantly share code, notes, and snippets.

@GaryLee
Created November 28, 2015 10:20
Show Gist options
  • Save GaryLee/661b34ef816ee44a292b to your computer and use it in GitHub Desktop.
Save GaryLee/661b34ef816ee44a292b to your computer and use it in GitHub Desktop.
The script to initial LCD on Raspberry which labeled "3.5 inch rpi lcd v3.0" on backside.
# The script to initial LCD on Raspberry which labeled "3.5 inch rpi lcd v3.0" on backside.
# The information is from https://github.com/notro/fbtft/issues/338
sudo modprobe flexfb width=320 height=480 regwidth=16 init=-1,0xb0,0x0,-1,0x11,-2,250,-1,0x3A,0x55,-1,0xC2,0x44,-1,0xC5,0x00,0x00,0x00,0x00,-1,0xE0,0x0F,0x1F,0x1C,0x0C,0x0F,0x08,0x48,0x98,0x37,0x0A,0x13,0x04,0x11,0x0D,0x00,-1,0xE1,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0xE2,0x0F,0x32,0x2E,0x0B,0x0D,0x05,0x47,0x75,0x37,0x06,0x10,0x03,0x24,0x20,0x00,-1,0x36,0x28,-1,0x11,-1,0x29,-3
sudo modprobe fbtft_device debug=3 rotate=90 name=flexfb speed=16000000 gpios=reset:25,dc:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment