From 1b8d9418bd556b35eb4741508726880d7cfe8264 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sun, 9 Feb 2020 09:54:43 -0600 Subject: Do more stuff --- Lab_2B.X/lab2b_c.c | 74 +++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 37 deletions(-) (limited to 'Lab_2B.X') 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 -- cgit v1.2.3