From 513e66017090f117284020431466a7cecd6ecd18 Mon Sep 17 00:00:00 2001 From: "R. Steve McKown" Date: Sun, 4 Dec 2011 16:41:28 -0700 Subject: [PATCH] Minor changes on startup --- main.c | 9 ++------- nbproject/Makefile-genesis.properties | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/main.c b/main.c index abf1098..21df3d7 100644 --- a/main.c +++ b/main.c @@ -28,15 +28,10 @@ int main(void) pic_init(); buttons_init(); rgb_init(); + srand(27); - if (buttons_on()) { + if (buttons_on()) rgb_on(); - red = random_rgb(); - grn = random_rgb(); - blu = random_rgb(); - //wht = random_rgb(); - rgb_set(red, grn, blu, 0); //wht); - } while (1) { unsigned char buttons = buttons_read(); diff --git a/nbproject/Makefile-genesis.properties b/nbproject/Makefile-genesis.properties index b65ef7b..e02084d 100644 --- a/nbproject/Makefile-genesis.properties +++ b/nbproject/Makefile-genesis.properties @@ -1,5 +1,5 @@ # -#Sun Dec 04 15:10:45 MST 2011 +#Sun Dec 04 16:20:32 MST 2011 default.languagetoolchain.dir=/usr/hitech/picc/9.82/bin com-microchip-mplab-nbide-embedded-makeproject-MakeProject.md5=11bb82e71763925c87fa30f6c65473b1 default.languagetoolchain.version=9.82 -- 2.39.2