Custom code changes- I/O pin go high or low

Hi, Can I set a pin to go high under a certain condition for example: when the battery is lower than a certain value, can I make one of the pins to go high or low? and if so how can I make that happen?

1 Like