because when i do TXLED0; i get the folowing error's
C:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\leonardo/pins_arduino.h:95:18: error: expected ')' before 'volatile' #define TXLED0 PORTD |= (1<<5)
^
C:\Users\User\Documents\kicad projecten\mobile camera boards\updateSoftware\updated_software\updated_software.ino:33:1: note: in expansion of macro 'TXLED0'
TXLED0;//mosfet2
^~~~~~
and doe you know what causes this or?
The RX and TX led can be turned on in a normal way and they can be turned off by making the pins INPUT.
However, when the pins are OUTPUT and they are on, then they will be turned off and on when there is serial data.