Hi working through the application notes, doc Visi GPIO PINS at page 10 if provides sample code to activate gpio pins
I have tried naming the pin GPIO_1, IO_1, GPIO1_PIN, IO1_PIN
The compiling error message is
Error: 'INPUT' not found (line 517 file:SpeedlessTest6.4dg)
Error: context error for unknown 'INPUT' (line 517 file:SpeedlessTest6.4dg)
Here is the code i have
func main()
gfx_ScreenMode(LANDSCAPE) ;
disp_SetReg(SSD1963_SET_ADDRESS_MODE, 0x09); // flip vertically from landscape only, different values can flip Portrait, Portrait_R and Landscape_R
pin_Set(INPUT, GPIO1_PIN)
repeat
if(pin_Read(GPIO1_PIN == 1)
print("ON \r");
gfx_CircleFilled(120,200,100,RED);
else
print("OFF\r");
gfx_CircleFilled(120,200,100, DARKRED);
endif
forever
I have tried naming the pin GPIO_1, IO_1, GPIO1_PIN, IO1_PIN
The compiling error message is
Error: 'INPUT' not found (line 517 file:SpeedlessTest6.4dg)
Error: context error for unknown 'INPUT' (line 517 file:SpeedlessTest6.4dg)
Here is the code i have
func main()
gfx_ScreenMode(LANDSCAPE) ;
disp_SetReg(SSD1963_SET_ADDRESS_MODE, 0x09); // flip vertically from landscape only, different values can flip Portrait, Portrait_R and Landscape_R
pin_Set(INPUT, GPIO1_PIN)
repeat
if(pin_Read(GPIO1_PIN == 1)
print("ON \r");
gfx_CircleFilled(120,200,100,RED);
else
print("OFF\r");
gfx_CircleFilled(120,200,100, DARKRED);
endif
forever
Comment