Page 1 of 1

nanopi neo: Matrix code possible bug matrix-0.96_128x64_oled

Posted: Wed Dec 21, 2016 9:29 am
by Djagab
Hi there,
I just built the matrix code because I would like to try the oled functionality it provides. I needed to change the pin numbers from 7 (203) and 11 (0) to 13 (2) and 15 (3) because I already use these pins for other purposes. It builds fine but when I execute the generated module it complains about pin 203 and 0 being occupied already. So it looks like these pins are hardcoded somewhere in the fahw-lib shared object and cannot be changed from code (OLEDInit(pin1,pin2). Please advise.

Thanks in advance.

Re: nanopi neo: Matrix code possible bug matrix-0.96_128x64_oled

Posted: Sun Jan 22, 2017 5:49 am
by jjm
Djagab wrote:
Hi there,
I just built the matrix code because I would like to try the oled functionality it provides. I needed to change the pin numbers from 7 (203) and 11 (0) to 13 (2) and 15 (3) because I already use these pins for other purposes. It builds fine but when I execute the generated module it complains about pin 203 and 0 being occupied already. So it looks like these pins are hardcoded somewhere in the fahw-lib shared object and cannot be changed from code (OLEDInit(pin1,pin2). Please advise.

Thanks in advance.


Hi,
About how to use the OLED you can refer to FriendlyARM BakeBit wiki part, FriendlyARM launched a new hardware kit which named BakeBit Starter Kit. The kit includes the OLED and provides complete code.
http://www.friendlyarm.com/index.php?ro ... uct_id=168


thank you!