Projekte
BirgerT
nibo2_Birger_01
nibo2_sensors.h
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
nibo2_Birger_01
blib_utils.c
blib_utils.h
BSD_license.h
nibo2_global.h
nibo2_main.c
nibo2_main_01.h
nibo2_pwm_leds.c
nibo2_pwm_leds.h
nibo2_sensors.c
nibo2_sensors.h
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
7427 private projects
385 public projects
16183128 lines compiled
58224 builds
NIBO
@
nibo2_birger_1/nibo2_sensors.h [read only]
////////////////////////////////////////////////////////////////////////// // // NIBO2 SENSORS // // ////////////////////////////////////////////////////////////////////////// // BSD License see "license.h" #include "BSD_license.h" #ifndef _NIBO2_SENSORS_H_ #define _NIBO2_SENSORS_H_ #include "nibo2_global.h" // Nibo2 Global Header #ifdef __cplusplus extern "C" { #endif // Taster SW3 Betätigung auswerten // TRUE wenn SW3 mindestens 2 Loops lang gedrückt ist #define SW3_DOWN ((sensors_sw3() & 0x03) == 0x03) // TRUE im Augenblick, wenn SW3 losgelassen wurde #define SW3_STOP ((sensors_sw3() & 0x03) == 0x02) // TRUE im Augenblick, wenn SW3 gedrückt wurde #define SW3_PLAY ((sensors_sw3() & 0x03) == 0x01) // Initialisierung der Sensoren void sensors_init(void); // Statusvariable für SW3, der aktuelle SW3 Status wird bei jedem // Aufruf von "sensors_sw3()" um ein Bit nach links verschoben uint8_t sensors_sw3(void); #ifdef __cplusplus } // extern "C" #endif #endif //_NIBO2_SENSORS_H_
Compiler results:
Werbung
Online
ashleighmccann268
josch
magvaf
paulinegonsalves19
wadehirsch7523292
workwind