aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <msattr@gmail.com>2020-02-09 09:54:43 -0600
committerMatt Strapp <msattr@gmail.com>2020-02-09 09:54:43 -0600
commit1b8d9418bd556b35eb4741508726880d7cfe8264 (patch)
tree2d5ace7be536abaa53871071b5f4db0a9176d6e4
parentDo lab stuffs (diff)
downloadee2361-1b8d9418bd556b35eb4741508726880d7cfe8264.tar
ee2361-1b8d9418bd556b35eb4741508726880d7cfe8264.tar.gz
ee2361-1b8d9418bd556b35eb4741508726880d7cfe8264.tar.bz2
ee2361-1b8d9418bd556b35eb4741508726880d7cfe8264.tar.lz
ee2361-1b8d9418bd556b35eb4741508726880d7cfe8264.tar.xz
ee2361-1b8d9418bd556b35eb4741508726880d7cfe8264.tar.zst
ee2361-1b8d9418bd556b35eb4741508726880d7cfe8264.zip
Do more stuff
-rw-r--r--Lab_2B.X/lab2b_c.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/Lab_2B.X/lab2b_c.c b/Lab_2B.X/lab2b_c.c
index 21fdcba..b063b27 100644
--- a/Lab_2B.X/lab2b_c.c
+++ b/Lab_2B.X/lab2b_c.c
@@ -67,42 +67,42 @@ void writeColor(int r, int g, int b) {
void loop(void) {
while (1) {
- LATA = 0x0000;
- wait_100us();
-
- //RED
- write_1();
- write_1();
- write_1();
- write_1();
-
- write_1();
- write_1();
- write_1();
- write_1();
-
- //GREEN
- write_1();
- write_0();
- write_0();
- write_1();
-
- write_1();
- write_0();
- write_1();
- write_1();
-
- //BLUE
- write_0();
- write_0();
- write_0();
- write_0();
-
- write_0();
- write_0();
- write_0();
- write_0();
-
- //writeColor(255, 155, 0);
+ writeColor(255, 155, 0);
+ /* HARDCODED */
+// LATA = 0x0000;
+// wait_100us();
+//
+// //RED
+// write_1();
+// write_1();
+// write_1();
+// write_1();
+//
+// write_1();
+// write_1();
+// write_1();
+// write_1();
+//
+// //GREEN
+// write_1();
+// write_0();
+// write_0();
+// write_1();
+//
+// write_1();
+// write_0();
+// write_1();
+// write_1();
+//
+// //BLUE
+// write_0();
+// write_0();
+// write_0();
+// write_0();
+//
+// write_0();
+// write_0();
+// write_0();
+// write_0();
}
} \ No newline at end of file