In order to control the LED on the UNO, I need to control the D13 bit. However, the Output function apparently only recognizes the ATmega ports, and not the Arduino specific ones. If I use Port B bit 5 all is well.
It would be more untuitive to use the Arduino specific names.
Is this in some way possible?
Arduino UNO LED
Moderator: Benj
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Arduino UNO LED
If you use a LED component, then the "connection" property to select the required port and pin,
the chip view is shown where the Arduino digital numbers are shown alongside the ATmega pins.
e.g. PD2 (Digital 2)
Also the chip view can be accessed at any time from the menu View->Chip to help identify the pins.
the chip view is shown where the Arduino digital numbers are shown alongside the ATmega pins.
e.g. PD2 (Digital 2)
Also the chip view can be accessed at any time from the menu View->Chip to help identify the pins.