projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new SCSI_ASENSE_NOT_READY_TO_READY_CHANGE constant to the Mass Storage class...
[pub/USBasp.git]
/
Projects
/
LEDNotifier
/
LEDNotifier.c
diff --git
a/Projects/LEDNotifier/LEDNotifier.c
b/Projects/LEDNotifier/LEDNotifier.c
index
da4ee9e
..
d1f4451
100644
(file)
--- a/
Projects/LEDNotifier/LEDNotifier.c
+++ b/
Projects/LEDNotifier/LEDNotifier.c
@@
-113,11
+113,11
@@
int main(void)
for (;;)
{
/* Read in next LED colour command from the host */
for (;;)
{
/* Read in next LED colour command from the host */
- uint8_t ColorUpdate = fgetc(&USBSerialStream);
+ uint8_t Colo
u
rUpdate = fgetc(&USBSerialStream);
/* Top 3 bits select the LED, bottom 5 control the brightness */
/* Top 3 bits select the LED, bottom 5 control the brightness */
- uint8_t Channel = (ColorUpdate & 0b11100000);
- uint8_t Duty = (ColorUpdate & 0b00011111);
+ uint8_t Channel = (Colo
u
rUpdate & 0b11100000);
+ uint8_t Duty = (Colo
u
rUpdate & 0b00011111);
if (Channel & (1 << 5))
SoftPWM_Channel1_Duty = Duty;
if (Channel & (1 << 5))
SoftPWM_Channel1_Duty = Duty;