Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please document OLED #10

Closed
probonopd opened this issue Apr 11, 2018 · 6 comments
Closed

Please document OLED #10

probonopd opened this issue Apr 11, 2018 · 6 comments

Comments

@probonopd
Copy link

  • 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?
@hyphop
Copy link
Owner

hyphop commented Apr 12, 2018

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

@probonopd
Copy link
Author

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.

@hyphop
Copy link
Owner

hyphop commented Apr 14, 2018

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

@probonopd
Copy link
Author

Wow, you are a magician...

@hyphop
Copy link
Owner

hyphop commented Apr 15, 2018

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

@probonopd
Copy link
Author

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

@hyphop hyphop closed this as completed May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants