Skip to content

Commit

Permalink
blink running LEDs
Browse files Browse the repository at this point in the history
  • Loading branch information
KautzA committed Mar 18, 2019
1 parent 0fbf1fb commit c64a31a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions HexapodCodeV4/c_loop.ino
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,9 @@ void loop() {
#endif

//Blink the running LED
if(time_1%500<150){
digitalWrite(LED_RUNNING,HIGH);
}
else{
digitalWrite(LED_RUNNING,LOW);
}
uint8_t led_state= abs((time_1%510)-255);
analogWrite(LED_RUNNING,led_state);
analogWrite(LED_RGB_BLU,led_state);

//Handle error LED patterns
if(error_state & B00000001){//DXL Error
Expand Down

0 comments on commit c64a31a

Please sign in to comment.