Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 8 months ago.
BusOut instead of PortName ?
UPDATE: I was somehow able to modify this so you can use BusInOut instead of PortName :D I added a new protocol named BUS8 not to mess with much of the code.
Do you accept pull requests? And if so how do I make one ? Write a FastBusInOut based on Erik Olieman's FastIO ? :D
It is very slow, any ideea on how to speed it up ?
System Core Clock = 100.000 MHZ Display ID: 00009325 Display Test cls: 488.977ms plot: 101.535ms bmp: 27.856ms Big Font: 69.856ms std: 1861.081ms fastw: 1331.540ms Bmp speed: 490.287ms
Original question: It would be nice if you could use BusOut or something similar instead of PortName so you can use actual shields that fit in the arduino headers for the Nucleo F411.
Like this:
BusOut dataBus( PA_9, PC_7, PA_10, PB_3, PB_5, PB_4, PB_10, PA_8 ); ILI932x myLCD(PAR_8, &dataBus, A3, A4, A2, A1, A0, "myLCD");
An example would be http://www.aitendo.com/product/10342
Question relating to:
1 Answer
9 years, 8 months ago.
Ops, i added bus8 and bus16 in the meanwhile, i read your update just now
PinName buspins[8]={D8,D9,D2,D3,D4,D5,D6,D7}; ILI932x myLCD(BUS_8, buspins, A3, A4, A2, A1, A0,"myLCD"); // Parallel Bus 8bit, buspins array, CS, reset, RS, WR, RD
yes it's very slow, consider each pin is handled as DigitalInOut, it's slower than spi on the slowest cpu.
About how to speedup, using lowlevel api would help, you can add a tweaked protocol if you like. Pullrequests are welcome :)