Projekte
BirgerT
TestLib
main.c
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
TestLib
main.c
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
@
testlib/main.c [read only]
/* NIBO2 C project */ #include <nibo/niboconfig.h> #include <nibo/display.h> #include <nibo/gfx.h> // NIBO2 Headerfiles, Defines und Makros #include "nibo/iodefs.h" #include "nibo/delay.h" #include "nibo/spi.h" #include "nibo/copro.h" #include "nibo/adc.h" #include "nibo/floor.h" #include "nibo/leds.h" #include "nibo/pwm.h" #include "nibo/bot.h" // AVR Header #include <stdio.h> // sprintf #include <avr/io.h> // ATmega128 #include <avr/interrupt.h> // Interrupts #include <avr/pgmspace.h> // FLASH #include <avr/eeprom.h> // EEPROM const char hello[] PROGMEM = "LIB 211 ?"; int main() { leds_init(); display_init(); gfx_init(); pwm_init(); bot_init(); spi_init(); floor_init(); delay(10); copro_ir_startMeasure(); // Headlights mit 1000 hell genug leds_set_displaylight(1000); // LED gedimmt == schoenere Farben leds_set_status_intensity(300); while(1==1) { gfx_move(30, 20); gfx_set_proportional(0); gfx_term_print("hello world!"); gfx_move(30, 30); gfx_set_proportional(1); gfx_term_print_P(hello); } return 0; }
Compiler results:
Werbung
Online
Bogdanasf
Bogdancmd
Marinauvj
warrenhinder6456