Michael Parrish
/
EMBEDDED4180
part1
main.cpp
- Committer:
- mparrish33
- Date:
- 2022-09-01
- Revision:
- 1:4bf1976e3a53
- Parent:
- 0:b7d1c13154a3
File content as of revision 1:4bf1976e3a53:
/* Michael Parrish & Tomas Gowens ECE 4180 Lab 1 */ #include "globals.h" #include "hardware.h" #include "LEDController.h" DigitalIn pb(p8); DigitalOut myled(LED1); // methods in this file int main() { // Part 1: Control a Red LED pb.mode(PullUp); while(1) { DigitalIn val = pb; if (!val) { Control(); } else { NoControl(); } } }