We're no longer updating This wiki!!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
en:c1_tinkering [2015/12/02 16:19]
brian.kim [Linux]
en:c1_tinkering [2016/02/25 15:27]
brian.kim [Linux]
Line 230: Line 230:
  
  # Set the LEDs  # Set the LEDs
- ledPos = adcValue / adc_unit+ ledPos = (adcValue ​* len(leds) * 1000) 1024 
 + ledPos = len(leds) - (ledPos / 1000) 
  for x in leds:  for x in leds:
  wpi.digitalWrite(x,​ 0)  wpi.digitalWrite(x,​ 0)
en/c1_tinkering.txt · Last modified: 2017/03/27 09:38 by brian.kim
CC Attribution-Share Alike 3.0 Unported
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0