I enclose the code obtained from ILI9341.
regards
Thanks, now I see.
You have created only one output, so MISO is output number 0
eLogicDevice :: setOut (0, false); // Set MISO to Low
__________________________________________
For several reasons the implementation of logic components is a bit complex and can be confusing.
After the change to new Subcircuits system it is possible to simplify it.
I did a complete refactoring of Logic components in trunk (Rev 311 and related).
So now it is easier and more intuitive to create new components.
For example, now there is no diferentiation betwen Pin and Logic Output, so you can manage states directly in the Pin, something like this:
bool mosiState = m_pinMosi.getInpState();
Or:
m_pinMiso.setOutState( false );
There is also a new SPI module in the making (not finished yet).
It will be used by any component that needs SPI communication in a similar way than current I2C module is currently used.