From: R. Steve McKown Date: Sun, 4 Dec 2011 23:41:28 +0000 (-0700) Subject: Minor changes on startup X-Git-Tag: 1.0~65 X-Git-Url: https://oss.titaniummirror.com/gitweb?p=rgblamp.git;a=commitdiff_plain;h=513e66017090f117284020431466a7cecd6ecd18 Minor changes on startup --- 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