1
0
Fork 0
This commit is contained in:
Jack Humbert 2015-05-15 21:57:29 -04:00
parent cb3e499cc7
commit 0e189b6bdd
14 changed files with 121 additions and 764 deletions

View file

@ -22,17 +22,17 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void led_set(uint8_t usb_led)
{
// Using PE6 Caps Lock LED
if (usb_led & (1<<USB_LED_CAPS_LOCK))
{
// Output high.
DDRE |= (1<<6);
PORTE |= (1<<6);
}
else
{
// Output low.
DDRE &= ~(1<<6);
PORTE &= ~(1<<6);
}
// // Using PE6 Caps Lock LED
// if (usb_led & (1<<USB_LED_CAPS_LOCK))
// {
// // Output high.
// DDRE |= (1<<6);
// PORTE |= (1<<6);
// }
// else
// {
// // Output low.
// DDRE &= ~(1<<6);
// PORTE &= ~(1<<6);
// }
}