Project

General

Profile

Revision 653

defining pretty colors

View differences:

orb.c
76 76
	OCR2B = 0;
77 77
	
78 78
	
79
	/*red is here. it goes on timer 1 which counts to the value in ICR1 instead of 8 bits*/
79
	/*red is here. it goes on timer 1 which counts to the value in ICR1 instead of 8 bits
80 80
	//TCCR1A = _BV(COM1B1)|_BV(COM1B0)|_BV(WGM11);
81 81
	TCCR1A |= 0b00110001;
82 82
	
......
84 84
	TCCR1B |= 0b00011001;
85 85
	ICR1 = 0x9C40;
86 86
	OCR1B = 0;
87
   
87
   */
88 88
	return 0;
89 89
}
90 90

  
......
109 109
	OCR2B = green;
110 110
	
111 111
	
112
	/*red is here. it goes on timer 1*/
112
	/*red is here. it goes on timer 1
113 113
	red = red%256;
114 114
	red *= 0x9C40;
115 115
	red = (int)(red/256); 
116 116
	OCR1B = red;
117
	
118
   
117
	*/
118
	while(1){
119
		PORTD |= 0b00010000;
120
   }
119 121
	return 0;
120 122
}
121 123

  
124
/**
125
 * Set both orbs to the color specified. orb_init must
126
 * be called before this function may be used.
127
 *
128
 * @param color use a pound defined color
129
 *
130
 * @see orb_init
131
 **/
132
 
133
 int set_orb(int color){
134
 }
135

  
122 136
/** @} **/ //end group

Also available in: Unified diff