hyphop / miZy

miZy - tiny fast embedded linux

Home Page:https://hyphop.github.io/mizy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please document OLED

probonopd opened this issue · comments

  • I am trying to use an 128x32 OLED instead of 128x64. What do I need to do?
  • How can I make it display my own boot logo and messages?

just correct connection to TWI0 (i2c SCK SDA) and GND +3.3V

Yes, I have connected it and I see a picture, but I need 128x32 pixels instead of 128x64, and another picture in the early boot process. How do I do that? Thanks.

ok
check https://github.com/hyphop/miZy-uboot
and this one
https://github.com/hyphop/miZy-uboot/releases/download/v0.1-beta/u-boot-mizi.bin

logo injected in uboot it just uboot/i2c commands stored as uboot env + raw bit data stored by addr sm=XXXXXXXX

if i2c dev 0 && i2c probe 3c; then
gpio set 6
# copy splash data to 0x43110000 addr
a=0x43110
cp.b $sm ${a}000 4096
# i2c commands block
i2c write ${a}000 3c 0 1A -s
i2c write ${a}01A 3c 0 7 -s
i2c write ${a}021 3c 0 401 -s
i2c write ${a}422 3c 0 401 -s
i2c write ${a}823 3c 0 8 -s
i2c write ${a}82B 3c 0 2 -s
echo "miZy splash"
fi

raw bit data mizy logo adress u can get when u build uboot

/tmp/zero_builder/miZy-uboot# ./uboot_build
...
[i] miZy logo addr: 4a0593c8 => .mizy_logo_addr => ../bin/uboot/mizi_logo_addr
...

good luck

Wow, you are a magician...

please inform me about 128x32 display work
i can provide more helpful info if u need

Thanks, I will let you know when I am working on it. For now I am trying to get pjsua to run...