Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
et:projects:patareisortija [2010/08/11 10:04] raivo.sellet:projects:patareisortija [2020/07/20 09:00] (current) – external edit 127.0.0.1
Line 107: Line 107:
  
 ==== Koodi baas õpetajatele ==== ==== Koodi baas õpetajatele ====
-<code>+<code c>
 #include <homelab/adc.h> #include <homelab/adc.h>
 #include <homelab/delay.h> #include <homelab/delay.h>
Line 128: Line 128:
  dist = adc_get_average_value(0, 10);  dist = adc_get_average_value(0, 10);
   
- if(dist <= 500)+ if(dist <= 20)
  {  {
  servomotor_position(0, -100);  servomotor_position(0, -100);
et/projects/patareisortija.1281521043.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0