Control of components from inside flowcode?
Posted: Sun Jun 24, 2012 8:54 pm
In the GLCD component file i have added in 2 lines of code to allow for contrast adjustment.
I am trying to access these commands from inside flowcode so as to adjust the contrast from inside my running software.
I am not getting very far at the moment, i tried the following in a C box inside flowcode.
This code compiles ok, but makes no changes when changing the parameter value from 0x51 to something different.
Is there something i am missing to connect the component file and the flowcode software together?
Code: Select all
gLCD_SendByte(MX_GFXLCD_CMD, 0x25); //Contrast Command
gLCD_SendByte(MX_GFXLCD_PARAM, 0x51); //Contrast Level
I am not getting very far at the moment, i tried the following in a C box inside flowcode.
Code: Select all
FCD_gLCD0_gLCD_SendByte(MX_GFXLCD_CMD, 0x25); //Contrast Command
FCD_gLCD0_gLCD_SendByte(MX_GFXLCD_PARAM, 0x51); //Contrast Level
Is there something i am missing to connect the component file and the flowcode software together?