Projekte
wed
18_LineSensor
main.cpp
Projekte
Forum
Doku
Öffentliche Projekte
Startseite
Beispielprogramme
Projekte von anderen
Welcome
Username
Passwort
Eingeloggt bleiben
Zugangsdaten vergessen?
Registrieren
Projektverwaltung
⇨ Please choose! ⇦
——————————————————
✎ Create new project...
★ Browse existing projects...
——————————————————
⚬ MotorTest#1
⚬ C Tutorial 8#1
⚬ NIBO2 C Project#1
⚙ C Tutorial 15#1
⚬ 2010_11_18_el_test001#1
18_LineSensor
main.cpp
Project details
Compiler settings
Nachrichten
Sie sind nicht eingeloggt.
Neuigkeiten
★
NiboRoboLib 3.6
2017-01-17: Neue Version 3.6
★
NiboRoboLib 3.4.1
2016-04-16: Neue Version 3.4.1
★
Coding Tutorial
2015-11-22: Jetzt auch für den NIBO burger!
Site-Statistic
7433 private projects
378 public projects
16180353 lines compiled
58212 builds
NIBO
@
18_linesensor/main.cpp [read only]
#include <nibobee/robomain.h> void setup() { led_init(); line_init(); } void loop() { // linker Liniensensor //-------------------- if (line_get(LINE_L) < 300) { led_set(LED_L_RD, 0); led_set(LED_L_YE, 0); } if (line_get(LINE_L) > 300) { led_set(LED_L_RD, 1); led_set(LED_L_YE, 0); } if (line_get(LINE_L) > 600) { led_set(LED_L_YE, 1); } // rechter Liniensensor //--------------------- if (line_get(LINE_R) < 300) { led_set(LED_R_RD, 0); led_set(LED_R_YE, 0); } if (line_get(LINE_R) > 300) { led_set(LED_R_RD, 1); led_set(LED_R_YE, 0); } if (line_get(LINE_R) > 600) { led_set(LED_R_YE, 1); } }
Compiler results:
Werbung
Online
charmainpottinger02
elissa90h1495041949
fredricrude265122072
kristiedubose56555
melaniewhisman948
warrenhinder6456