collab/mm20
git clone https://git.julia.blue/collab/mm20
f9a9dd3
pcb
1#include <stdbool.h> 2#include <stdint.h> 3 4// PF0 - Left button 5// PF1 - Red LED 6// PF2 - Blue LED 7// PF3 - Green LED 8// PF4 - Right button 9// PA0 - USB UART RX 10// PA1 - USB UART TX 11 12// Initializes the LED and button pins on the launchpad, as well as 13// UART <-> USB through the debugger. 14void launchpad_init (void ); 15 16#define RED_LED 2 17#define BLUE_LED 4 18#define GREEN_LED 8 19 20bool left_switch (void ); 21 22bool right_switch (void ); 23 24void led_toggle (uint8_t led ); 25 26void led_write (uint8_t led ,bool value );